# Template file for 'fuse'
pkgname=fuse
version=2.9.9
revision=1
build_style=gnu-configure
configure_args="--enable-lib --enable-util"
hostmakedepends="automake libtool gettext-devel"
short_desc="Filesystem in Userspace"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://github.com/libfuse/libfuse"
distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5

post_install() {
	# remove obsolete rules file provided by udev.
	rm -rf ${DESTDIR}/{dev,etc}
	mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
}

fuse-devel_package() {
	depends="fuse>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
