APKBUILD 987 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
3
pkgver=3.1.10
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="e2fsprogs-dev bash"
Natanael Copa's avatar
Natanael Copa committed
11 12 13 14
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://oss.sgi.com/projects/xfs/cmd_tars/${pkgname}-$pkgver.tar.gz
	"

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

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

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

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
39 40
	make -j1 DIST_ROOT="$pkgdir" install install-dev install-qa || return 1
	rm "$pkgdir"/usr/lib/*.la "$pkgdir"/lib/*.la
Natanael Copa's avatar
Natanael Copa committed
41
}
42
md5sums="d6159f7a664d95b4c150d580399d4400  xfsprogs-3.1.10.tar.gz"