# Template file for 'erofs-utils'
pkgname=erofs-utils
version=1.3
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="liblz4-devel libuuid-devel"
short_desc="User-space tools for EROFS filesystem"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/about/"
distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${version}.tar.gz"
checksum=132635740039bbe76d743aea72378bfae30dbf034e123929f5d794198d4c0b12

pre_configure() {
	autoreconf -fi
}

post_install() {
	# erofsfuse is experimental and not currently build/enabled but the man
	# page is still installed, remove it for now.
	rm -f "${DESTDIR}/usr/share/man/man1/erofsfuse.1"
}
