aboutsummaryrefslogtreecommitdiffstats
path: root/main/jfsutils/APKBUILD
blob: 86bbd721ee7d7a95005f23325dd1c48293caa410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Teran McKinney <sega01@go-beyond.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jfsutils
pkgver=1.1.15
pkgrel=0
pkgdesc="JFS filesystem utilities"
url="http://jfs.sourceforge.net"
arch="all"
license="GPL"
depends=
install=
makedepends="e2fsprogs-dev" # pkgconfig is pulled in externally.
subpackages="$pkgname-doc"
source="http://jfs.sourceforge.net/project/pub/jfsutils-$pkgver.tar.gz
	missing-stdinth.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
        local i
        cd "$_builddir"
        for i in $source; do
                case $i in
                *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
                esac
        done
}

build () {
	cd "$_builddir"
	./configure \
		--mandir=/usr/share/man

	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 LDCONFIG=: DESTDIR="${pkgdir}" install || return 1
}

md5sums="8809465cd48a202895bc2a12e1923b5d  jfsutils-1.1.15.tar.gz
da6e6be4d89d5652d9c1e99424634e42  missing-stdinth.patch"