APP=ntfs-3g
VERSION=2017.3.23
BUILD=1sml
HOMEPAGE='http://www.tuxera.com/community/open-source-ntfs-3g/'
DOWNLOAD='https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz'
DESC="NTFS read-write filesystem driver"
REQUIRES="netbsd-curses util-linux fuse"
SM_NOAUTOCONFSITE=1

build() {
  mkandenterbuilddir
  rm -rf $APP"_ntfsprogs"-$VERSION

  tar xf $SRCDIR/$APP"_ntfsprogs"-$VERSION.tgz
  cd $APP"_ntfsprogs"-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --bindir="/bin" \
    --sbindir="/bin" \
    --disable-static \
    --with-fuse=internal

  make
  make install DESTDIR=$PKG

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
3a607f0d7be35204c992d8931de0404fbc52032c13b4240d2c5e6f285c318a28eb2a385d7cf5ac4cd445876aee5baa5753bb636ada0d870d84a9d3fdbce794ef  ntfs-3g_ntfsprogs-2017.3.23.tgz
"
