# Contributor: Valery Kartel # Maintainer: A. Wilcox pkgname=xfsprogs pkgver=6.9.0 pkgrel=0 pkgdesc="XFS filesystem utilities" url="https://xfs.org/index.php/Main_Page" arch="all" options="!check" # No test suite. license="GPL-1.0-only" depends="$pkgname-base" makedepends="attr-dev bash icu-dev inih-dev libedit-dev linux-headers userspace-rcu-dev util-linux-dev" subpackages="$pkgname-base $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" source="https://www.kernel.org/pub/linux/utils/fs/xfs/$pkgname/$pkgname-$pkgver.tar.gz no-utmp-header.patch scrub.patch " build() { export DEBUG=-DNDEBUG export OPTIMIZER="$CFLAGS" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sbindir=/sbin \ --libexecdir=/usr/lib \ --enable-editline make SHELL=/bin/bash } check() { make check } package() { make -j1 DIST_ROOT="$pkgdir" install install-dev find "$pkgdir" -name *.la -delete chown -R 0:0 "$pkgdir" } base() { # Everything except xfs_scrub, which pulls in 50 MiB of icu libs. pkgdesc="Base $pkgdesc" mkdir "$subpkgdir" mv "$pkgdir"/sbin "$subpkgdir"/ mkdir "$pkgdir"/sbin mv "$subpkgdir"/sbin/xfs_scrub "$pkgdir"/sbin/ } sha512sums="bfb3c98e7571180f1c5c130ca9aece5dde97bc6c628dc3d6560b0da75e5b43e8febe3eec193d3db2ec877b3a27258c53c033c7ed3d881efd2d4e3216033aaf2b xfsprogs-6.9.0.tar.gz 29c77c550fa8f7a0b3794649d278a2cb3a65c9368db19415866910160adb6d5a52f1be4f8713b58c5c87f149b6212c068ae27a4547a6c4e4fe7b1584e1261dae no-utmp-header.patch d83e2ae819a338273fae7999a0ae1376faa593308974f93abc6db140b134ec98f855a2ea5585583f739b041fbb5d4b8a0d4d27ecd73df6c34cd799b2cee55b9a scrub.patch"