APKBUILD 1.42 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
pkgver=4.17.0
5
pkgrel=1
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 python3"
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
	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
41
	chown -R root:root "$pkgdir"/*
42
43
44
}

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

52
sha512sums="19bdb9b1698b07d42c52976c17ac8dc95170e59bbd7d74e3d6faadd36cba88ed36a8b0c309052cab01ecb3a14e564b42ea982380b76922401be516d463476548  xfsprogs-4.17.0.tar.gz"