APKBUILD 905 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
3
pkgver=3.1.4
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6 7 8
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
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-$pkgver.tar.gz
	"

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

prepare() {
	cd "$_builddir"
18
	sed -i -e 's/--best//' Makefile doc/Makefile
19
}
Natanael Copa's avatar
Natanael Copa committed
20
	
21 22
build() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
23 24 25 26 27 28 29
	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 \
30
		--enable-lib64=no \
Natanael Copa's avatar
Natanael Copa committed
31 32
		--enable-gettext=no

33
	make SHELL=/bin/bash || return 1
34 35 36 37
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
38 39
	make -j1 DIST_ROOT="$pkgdir" install install-dev
}
40
md5sums="74081975f148bcabcab26c4c3496ede9  xfsprogs-3.1.4.tar.gz"