pkgname=btrfs-progs pkgver=6.12 pkgrel=1 pkgdesc="Btrfs filesystem utilities" arch=('x86_64') url="https://btrfs.readthedocs.io" license=('GPL-2.0-only') depends=('glibc' 'lzo' 'zlib' 'zstd') makedepends=('e2fsprogs' 'python-setuptools' 'systemd') source=(https://www.kernel.org/pub/linux/kernel/people/kdave/${pkgname}/${pkgname}-v${pkgver}.tar.xz) sha256sums=(9a7d9651ffd52fbe5212a8e4852a3cdb079e3d223fc5504e6a50b0ba96cd20a1) build() { cd ${pkgname}-v${pkgver} local configure_args=( --disable-static --disable-documentation ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-v${pkgver} make DESTDIR=${pkgdir} install for i in 5 8; do install -vdm755 ${pkgdir}/usr/share/man/man${i} install Documentation/*.${i} ${pkgdir}/usr/share/man/man${i} done }