SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ntfs-3g"

# SliTaz package receipt.

PACKAGE="ntfs-3g"
VERSION="2022.10.3"
CATEGORY="system-tools"
TAGS="windows"
SHORT_DESC="Read and write NTFS driver for FUSE."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.tuxera.com/company/open-source/"

SOURCE="ntfs-3g_ntfsprogs"
TARBALL="$SOURCE-$VERSION.tgz"
WGET_URL="https://tuxera.com/opensource/$TARBALL"

DEPENDS="attr fuse"
BUILD_DEPENDS="attr-dev fuse-dev libtool util-linux-uuid-dev \
libgcrypt-dev autoconf"

CONFIG_FILES="/etc/filesystems"

current_version()
{
    wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $DESTDIR/lib
    ./autogen.sh
    ./configure            \
        --prefix=/usr        \
        --disable-static    \
        --with-fuse=internal    \
        --mandir=/usr/share/man    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc
    cp -a $install/.    $fs/.
    rm -rf            $fs/usr/bin/ntfs[a-z]*
    rm -rf            $fs/sbin/mkfs.ntfs
    rm -rf            $fs/usr/s*
    rm -rf            $fs/usr/share
    rm -rf            $fs/usr/lib/pkgconfig
    rm -rf            $fs/usr/lib/*.*a
    rm -rf            $fs/usr/include
    touch            $fs/etc/filesystems
    #this link allows udisks2 to use ntfs-3g
    cd $fs/sbin
    ln -s mount.ntfs-3g mount.ntfs
}

# Pre remove and post install commands for Tazpkg.
pre_remove()
{
    sed -i '/^$PACKAGE$/d'    "$1/etc/filesystems"
}

post_install()
{
    grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
        echo "$PACKAGE" >> "$1/etc/filesystems"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)