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

15 16 17 18
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
19 20 21 22
	for i in ../*.patch; do
		msg "Applying $i..."
		patch -p1 < $i || return 1
	done
23
}
Natanael Copa's avatar
Natanael Copa committed
24
	
25 26
build() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
27 28 29 30 31 32 33 34 35
	export DEBUG=-DNDEBUG
	export OPTIMIZER="$CFLAGS"

	ac_cv_header_aio_h=yes ac_cv_lib_rt_lio_listio=yes \
	./configure --prefix=/usr \
		--sbindir=/sbin \
		--libexecdir=/usr/lib \
		--enable-gettext=no

36
	make SHELL=/bin/bash || return 1
37 38 39 40
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
41 42
	make -j1 DIST_ROOT="$pkgdir" install install-dev
}
43
md5sums="07c1ff6a4a44b58ee5ffdabca33a4493  xfsprogs-3.1.0.tar.gz
Natanael Copa's avatar
Natanael Copa committed
44
c72865de30f55343e843dd4fd49a91c5  xfsprogs-3.0.0-gzip.patch"