# Contributor: Valery Kartel # Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa pkgname=btrfs-progs pkgver=4.14 pkgrel=1 pkgdesc="BTRFS filesystem utilities" url="https://btrfs.wiki.kernel.org/" arch="all" license="GPL-2.0" depends="" depends_dev="linux-headers" makedepends="util-linux-dev bash attr-dev acl-dev e2fsprogs-dev zlib-dev lzo-dev asciidoc xmlto $depends_dev autoconf automake libtool" subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:completion:noarch $pkgname-libs $pkgname-extra" source="https://www.kernel.org/pub/linux/kernel/people/kdave/$pkgname/$pkgname-v$pkgver.tar.xz includes.patch musl-compat.patch" builddir="$srcdir/$pkgname-v$pkgver" prepare() { default_prepare cd "$builddir" ./autogen.sh } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-backtrace \ --disable-zstd make } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir" install mkdir "$pkgdir"/sbin local i; for i in btrfs btrfsck fsck.btrfs mkfs.btrfs; do mv "$pkgdir"/usr/bin/$i "$pkgdir"/sbin/ done mv "$pkgdir"/usr/bin "$pkgdir"/usr/sbin } completion() { pkgdesc="Bash completion script for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" install -Dm644 "$builddir"/btrfs-completion \ "$subpkgdir"/usr/share/bash-completion/completions/btrfs } extra() { depends="$pkgname" pkgdesc="BTRFS filesystem extra utilities" mkdir -p "$subpkgdir" mv "$pkgdir"/usr "$subpkgdir"/ rmdir "$subpkgdir"/usr/lib } sha512sums="11171e6730f4aa102bdb4cd405da2d4c55e2c102fec4cc6d3135df516c78af1c34fede722a1677bd9c638b47e77085e005b29333ae70b98771501e32628890f7 btrfs-progs-v4.14.tar.xz dae1b9a5c9d2e4d45938207e5fdd81fe5d8484bea4242f0a7a5ee9445ae723cfcdb3070f723cf5f2abc434c643a81f59049a1a112379e437bab78040ce4596fe includes.patch 5c04ef0aa0390aa9b32fc8b8d3d0bfb16c61cb005eb70de8523f8eb709a2422960c1dea3ece11c7ae1442b538ea195b7eacba678a432e9bde7cb074392800af0 musl-compat.patch"