pkgname=btrfs-progs pkgver=6.16 pkgdesc='Btrfs filesystem utilities' arch=('x86_64') homepage='https://btrfs.readthedocs.io' license=('GPL-2.0-only') sources=("${pkgname}-v${pkgver}.tar.xz") urls=("https://www.kernel.org/pub/linux/kernel/people/kdave/${pkgname}/${sources[0]}") md5sums=("2954d539b75beb912a0c0c98783ba5f3") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { ./configure --prefix=/usr \ --disable-static \ --enable-zstd \ --disable-convert \ --disable-documentation && make } # skip tests since tests need lvm, but I never need lvm src_install() { make DESTDIR="$pkgdir" install install_python install -Dm644 btrfs-completion "${pkgdir}/usr/share/bash-completion/completions/btrfs" }