APKBUILD 1.34 KB
Newer Older
1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
Natanael Copa's avatar
Natanael Copa committed
2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfsprogs
4 5
pkgver=4.14.0
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
6
pkgdesc="XFS filesystem utilities"
7
url="http://xfs.org/index.php/Main_Page"
8
arch="all"
Natanael Copa's avatar
Natanael Copa committed
9
license="LGPL"
10
makedepends="linux-headers util-linux-dev bash gzip"
11
options="!check"  # no test suite
12
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-extra"
13
source="https://www.kernel.org/pub/linux/utils/fs/xfs/$pkgname/$pkgname-$pkgver.tar.gz
Natanael Copa's avatar
Natanael Copa committed
14 15
	"

16
builddir="$srcdir/$pkgname-$pkgver"
17

18
build() {
19
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
20 21
	export DEBUG=-DNDEBUG
	export OPTIMIZER="$CFLAGS"
22 23 24 25
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
26 27
		--sbindir=/sbin \
		--libexecdir=/usr/lib \
28 29
		--enable-gettext=no
	make SHELL=/bin/bash
30 31 32
}

package() {
33 34
	cd "$builddir"
	make -j1 DIST_ROOT="$pkgdir" install install-dev
35
	find "$pkgdir" -name *.la -delete
36 37 38 39 40 41 42 43 44
	mv "$pkgdir"/sbin "$pkgdir"/usr
	mkdir -p "$pkgdir"/sbin
	for i in mkfs.xfs fsck.xfs xfs_repair; do
		mv "$pkgdir"/usr/sbin/$i "$pkgdir"/sbin/
	done
}

extra() {
	depends="$pkgname"
45
	pkgdesc="XFS filesystem extra utilities"
46
	mkdir -p "$subpkgdir"
47
	rmdir "$pkgdir"/lib "$pkgdir"/usr/lib
48
	mv "$pkgdir"/usr "$subpkgdir"/
Natanael Copa's avatar
Natanael Copa committed
49
}
50

51
sha512sums="6b8e5e12aa5c4d197feb7c464495a1da163cf7a61416a5b9960dbae9456d776d815d5bb2f60850027274bd8d2cd4409f0fa8d572117043ba38ecc5c785f24967  xfsprogs-4.14.0.tar.gz"