# Description: Filesystem utilities for btrfs
# URL: https://btrfs.readthedocs.io/en/latest/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: lzo util-linux

name=btrfs-progs
version=6.8
release=1
source=(https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$version.tar.xz)

build() {
	cd $name-v$version

	./configure \
		--prefix=/usr \
		--bindir=/sbin \
		--disable-convert \
		--disable-zoned \
		--disable-documentation
	make
	make DESTDIR=$PKG install

	install -d $PKG/usr/share/man/man{5,8}
	install -m 644 Documentation/*.5 $PKG/usr/share/man/man5
	install -m 644 Documentation/*.8 $PKG/usr/share/man/man8
}
