# Description: Filesystem utilities for XFS
# URL: https://xfs.wiki.kernel.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: inih libdevmapper liburcu

name=xfsprogs
version=6.6.0
release=1
source=(https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/$name-$version.tar.xz)

build() {
	cd $name-$version

	make configure

	export DEBUG=-DNDEBUG
	export OPTIMIZER=$CFLAGS

	./configure \
		--prefix=/usr \
		--disable-gettext \
		--disable-libicu
	make
	make -j1 DIST_ROOT=$PKG install install-dev

	rm $PKG/lib/libhandle.{so,a,la}
	ln -sf ../../lib/$(readlink $PKG/lib/libhandle.so.1) $PKG/usr/lib/libhandle.so

	rm -r $PKG/usr/share/doc
}
