#!/bin/sh

NAME="ntfs-3g"
DESC="Stable, full-featured, read-write NTFS"

MAKEDEPS=" attr util-linux linux-headers"

PKG_VER=2022.5.17
SOURCE="https://tuxera.com/opensource/ntfs-3g_ntfsprogs-$PKG_VER.tgz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
        --exec-prefix=/usr \
        --disable-static \
        --with-fuse=external\
         --enable-posix-acls \
         --enable-xattr-mappings \
         --sbin=/usr/bin
	make
}

package() {
	mkdir -p "$PKG_DEST"/lib
	make -j1 DESTDIR="$PKG_DEST" LDCONFIG=: install
	ln -s /bin/ntfs-3g "$PKG_DEST"/sbin/mount.ntfs
}
