description="The Ntfs-3g package contains a stable, read-write open source driver for NTFS partitions."
url="http://www.ntfs-3g.org"
packager="spiky <spiky@nutyx.org>"
contributors="Pierre,Tnut"

name=ntfs-3g
version=2022.10.3

source=(http://tuxera.com/opensource/${name}_ntfsprogs-$version.tgz)
build() {
cd ${name}_ntfsprogs-$version
./configure --prefix=/usr \
--bindir=/bin \
--sbindir=/sbin \
--disable-static \
--with-fuse-internal
make
mkdir $PKG/lib
make DESTDIR=$PKG install
ln -s ../bin/ntfs-3g $PKG/sbin/mount.ntfs
ln -s ntfs-3g.8 $PKG/usr/share/man/man8/mount.ntfs.8
chmod -v 4755 $PKG/bin/ntfs-3g
rm $PKG/usr/lib/lib$name.la
}
