APKBUILD 1.39 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.16.1
5
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 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 41 42 43
	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() {
44
	depends="$pkgname python3" # python3 for xfs_scrub_all
45
	pkgdesc="XFS filesystem extra utilities"
46
	mkdir -p "$subpkgdir"
47
	rm -rf "$pkgdir"/lib "$pkgdir"/usr/lib
48
	mv "$pkgdir"/usr "$subpkgdir"/
Natanael Copa's avatar
Natanael Copa committed
49
}
50

51
sha512sums="c83d94950a727c3008c56ca6952e821e5c119e0a40d4c1b3251768e116d1eb62592556006e1cdc491fb8f6dd245c419c985da41ed1656b8d4962188a06d800f5  xfsprogs-4.16.1.tar.gz"