# Template file for 'ntfs-3g'
pkgname=ntfs-3g
version=2015.3.14
revision=2
wrksrc="${pkgname}_ntfsprogs-${version}"
build_style=gnu-configure
configure_args="--exec-prefix=/usr --disable-static --with-fuse=external
 --enable-posix-acls --enable-xattr-mappings --sbin=/usr/bin"
hostmakedepends="pkg-config"
makedepends="libuuid-devel fuse-devel"
short_desc="Stable Read/Write NTFS Driver in userspace"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.tuxera.com/community/ntfs-3g-download/"
license="GPL-2"
distfiles="http://www.tuxera.com/opensource/${pkgname}_ntfsprogs-${version}.tgz"
checksum=97f996015d8316d4a272bd2629978e5e97072dd3cc148ce39802f8037c6538f2

post_install() {
	mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
	ln -sf ntfs-3g ${DESTDIR}/usr/bin/mount.ntfs
}

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