aboutsummaryrefslogtreecommitdiffstats
path: root/main/jfsutils/APKBUILD
blob: 5ab40b6cd0f2f344a4e1d938281c39e1a6710910 (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
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Teran McKinney <sega01@go-beyond.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jfsutils
pkgver=1.1.15
pkgrel=1
pkgdesc="JFS filesystem utilities"
url="http://jfs.sourceforge.net"
arch="all"
license="GPL"
depends=
install=
makedepends="e2fsprogs-dev" # is pulled in externally.
subpackages="$pkgname-doc"
source="http://jfs.sourceforge.net/project/pub/jfsutils-$pkgver.tar.gz
	musl-fix-includes.patch
	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 \
		--build=$CBUILD \
		--host=$CHOST \
		--mandir=/usr/share/man \
		|| return 1

	make || return 1
}

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

md5sums="8809465cd48a202895bc2a12e1923b5d  jfsutils-1.1.15.tar.gz
cd086dc5682094b81c25fa64ed820aca  musl-fix-includes.patch
da6e6be4d89d5652d9c1e99424634e42  missing-stdinth.patch"
sha256sums="244a15f64015ce3ea17e49bdf6e1a0fb4f9af92b82fa9e05aa64cb30b5f07a4d  jfsutils-1.1.15.tar.gz
163754388fb2f8c7525b14d1f9cb07e35b91d0ff8f5964df20c3f042305f42d4  musl-fix-includes.patch
cabb017038bccfcec5ff55b820105b1fefe679c122a03f2d186f5be8e33ca4d7  missing-stdinth.patch"
sha512sums="fa8ba7f4997471da3e6ea7239564f3395046222cfbb2b10e37b24ad0bd107b7eadbb51ce328d89d193034360b4035ca5e0e5b0b416a74483d7a2c0a2b9c65858  jfsutils-1.1.15.tar.gz
fb0d7348e2e13a6a9c3a987d161e0cf05363649515366ef49a45e3580b8f6135fce8465b99ff8a351231d970371c00bea6ceb9edb1d0f24da20d261b06ec85bd  musl-fix-includes.patch
a8e2332f2dec37affa8404b31e7e68399d815d450422ad342243c51d117e4d7ef4aaa0e30d1389380a81ed076a7ef1e1d41fcf260fa05ce4d823aa779628982d  missing-stdinth.patch"