# Contributor: Valery Kartel # Maintainer: Natanael Copa pkgname=xfsprogs pkgver=5.4.0 pkgrel=0 pkgdesc="XFS filesystem utilities" url="http://xfs.org/index.php/Main_Page" arch="all" license="LGPL-2.1-or-later" makedepends="linux-headers attr-dev util-linux-dev bash gzip python3" options="!check" # no test suite subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-extra" source="https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-$pkgver.tar.gz fix-mmap.patch musl-MAP_SYNC-fix.patch " build() { export DEBUG=-DNDEBUG export OPTIMIZER="$CFLAGS" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sbindir=/sbin \ --libexecdir=/usr/lib \ --enable-gettext=no make SHELL=/bin/bash } package() { make -j1 DIST_ROOT="$pkgdir" install install-dev find "$pkgdir" -name *.la -delete 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 chown -R root:root "$pkgdir"/* } extra() { depends="$pkgname python3" # python3 for xfs_scrub_all pkgdesc="XFS filesystem extra utilities" mkdir -p "$subpkgdir" rm -rf "$pkgdir"/lib "$pkgdir"/usr/lib mv "$pkgdir"/usr "$subpkgdir"/ } sha512sums="4d520881f4556976c3d64c5f72f51ea5531c7f380b22c48a1fb72bfde078ac725c70899c8c58263aa2a7aed2213de604121f2863e88b5cf8fb0dcc54446e133e xfsprogs-5.4.0.tar.gz 080161b211e20277e44f714961b36064536bb5cce72a6f93fef4996e296a3953d33c1a066ef371ccd5551622357105f9be9086ef917386f5d43f6a211b0bd7c9 fix-mmap.patch bc7971207a296d8112f8993f6a266533135aae59a4438bb511f472931c37b8ce3033c597d67abbd3664f4405317aeb049e747c1811c9495c1a24d98935f799cc musl-MAP_SYNC-fix.patch"