# Template file for 'fuse'
pkgname=fuse
version=2.9.5
revision=1
wrksrc="libfuse-fuse_${version//./_}"
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --enable-lib --enable-util"
hostmakedepends="automake libtool gettext-devel"
short_desc="Filesystem in Userspace"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="https://github.com/libfuse/libfuse"
distfiles="${homepage}/archive/${pkgname}_${version//./_}.tar.gz"
checksum=ccea9c00f7572385e9064bc55b2bfefd8d34de487ba16d9eb09672202b5440ec

pre_configure() {
	./makeconf.sh
}

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"
	}
}
