# Template file for 'erofs-utils'
pkgname=erofs-utils
version=1.8.2
revision=1
build_style=gnu-configure
configure_args="
 --enable-fuse
 --enable-lzma"
hostmakedepends="automake libtool pkg-config"
makedepends="liblz4-devel libuuid-devel liblzma-devel libzstd-devel zlib-devel
 fuse-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/"
changelog="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/plain/ChangeLog"
distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${version}.tar.gz"
checksum=64b6ff7e899f62480283cee63787f37f0f9c4be7a6bc7a23d734aaa873a6cff4

pre_configure() {
	autoreconf -fi
}

fuse-erofs_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/bin/erofsfuse
		vmove usr/share/man/man1/erofsfuse.1
	}
}
