APKBUILD 2.01 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
3
pkgver=3.2.4
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="XFS filesystem utilities"
url="http://oss.sgi.com/projects/xfs/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9
license="LGPL"
depends="e2fsprogs"
10
makedepends="linux-headers e2fsprogs-dev bash"
Natanael Copa's avatar
Natanael Copa committed
11 12
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-$pkgver.tar.gz
13
	musl-fixes.patch
14
	musl-linux-limits.patch
Natanael Copa's avatar
Natanael Copa committed
15 16
	"

17 18 19 20
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
21 22 23 24 25
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
26
	sed -i -e 's/--best//' Makefile doc/Makefile
27
}
28

29 30
build() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
31 32
	export DEBUG=-DNDEBUG
	export OPTIMIZER="$CFLAGS"
33 34
	export INSTALL_USER=root
	export INSTALL_GROUP=root
Natanael Copa's avatar
Natanael Copa committed
35 36

	ac_cv_header_aio_h=yes ac_cv_lib_rt_lio_listio=yes \
37 38 39 40
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
41 42
		--sbindir=/sbin \
		--libexecdir=/usr/lib \
43
		--enable-lib64=no \
44 45
		--enable-gettext=no \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
46

47
	make SHELL=/bin/bash || return 1
48 49 50 51
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
52
	make -j1 DIST_ROOT="$pkgdir" install install-dev install-qa || return 1
Natanael Copa's avatar
Natanael Copa committed
53
}
54
md5sums="c28db88f058ada506fe0ac6a897a1c42  xfsprogs-3.2.4.tar.gz
55
fa81f3dcfb5d14bc7109ea3ca4f66b03  musl-fixes.patch
56
a7a1f812836cb49af45b6de74fa07837  musl-linux-limits.patch"
57
sha256sums="dde65ead82d3cbfa9b4ded9796b6d22095d7d759a22d41ae6f1a4ec458bb0465  xfsprogs-3.2.4.tar.gz
58
b62b258a56ba5ffbead385a390541fa34b8b545322ad6984bc5c1bb01d2e0c58  musl-fixes.patch
59
6d8e49de188fc9932ea488a8945601bf2035b03dfa4c3667bd55689445582696  musl-linux-limits.patch"
60
sha512sums="fb1ea5beb933b86970cac198fa4e296457f0f5b30bd72fda54452644730277929dee28f11f35a154910e4a19857455ecffdd21b3df456023e0da95e2fd0aa0eb  xfsprogs-3.2.4.tar.gz
61
1c6936fdee3cebf81a1ef9828cbf28175533dab46b47aead3f4165f725b7a66d1ac214314818f639313ebfef8e0fe245d21bb7f804423f934c2505c493dbce97  musl-fixes.patch
62
62125c90ff22e52142927d3e1ca8411a757679a304fcf1acf780c692fee1ef8c8d1d4bdbd97dce3e9f6d6678f9640f189fd96400e91c974978f0455966b80c6c  musl-linux-limits.patch"