# Template file for 'fuse'
pkgname=fuse
version=2.9.3
revision=2
build_style=gnu-configure
configure_args="--enable-lib --enable-util"
short_desc="Filesystem in Userspace"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://fuse.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=0beb83eaf2c5e50730fc553406ef124d77bc02c64854631bdfc86bfd6437391c

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

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