# Contributor: Valery Kartel # Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa pkgname=btrfs-progs pkgver=6.0.1 pkgrel=0 pkgdesc="BTRFS filesystem utilities" url="https://btrfs.wiki.kernel.org" arch="all" license="GPL-2.0-or-later LGPL-3.0-or-later" depends_dev="linux-headers" makedepends="$depends_dev acl-dev asciidoc attr-dev e2fsprogs-dev eudev-dev lzo-dev py3-setuptools py3-sphinx python3-dev util-linux-dev xmlto zlib-dev zstd-dev " subpackages=" $pkgname-doc $pkgname-static $pkgname-dev $pkgname-bash-completion py3-$pkgname:py3 $pkgname-libs $pkgname-extra " source="https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$pkgver.tar.xz" builddir="$srcdir/$pkgname-v$pkgver" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-backtrace make } package() { make -j1 DESTDIR="$pkgdir" install install_python mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -m644 README.md CHANGES \ "$pkgdir"/usr/share/doc/$pkgname 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 install -Dm644 btrfs-completion \ "$pkgdir"/usr/share/bash-completion/completions/btrfs } py3() { pkgdesc="Python 3 bindings for $pkgname" provides="py-btrfs-progs=$pkgver-r$pkgrel" # for backward compatibility replaces="py-btrfs-progs" # for backward compatibility amove usr/lib/python* } extra() { depends="$pkgname" pkgdesc="BTRFS filesystem extra utilities" amove usr/sbin } sha512sums=" 5ae2d05658719bd983374c62f8bf45f9a4cd5d1e86c8b0bc7df2194e7c308a64b5a7c5ef38cc5b359a84d4e3e8318d363ab831e3956088fd3ef5b66b7b7e6ea5 btrfs-progs-v6.0.1.tar.xz "