wok annotate ntfs-3g/receipt @ rev 24099

Up openssh (8.7p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 16 08:39:38 2021 +0000 (2021-09-16)
parents 8e4d8dc52748
children 72f2704d3ae0
rev   line source
pankso@47 1 # SliTaz package receipt.
pankso@47 2
pankso@47 3 PACKAGE="ntfs-3g"
pascal@20162 4 VERSION="2017.3.23"
pankso@202 5 CATEGORY="system-tools"
al@17992 6 SHORT_DESC="Read/write NTFS driver for FUSE"
pankso@47 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
monghitri@14103 9 SOURCE="ntfs-3g_ntfsprogs"
monghitri@14103 10 TARBALL="$SOURCE-$VERSION.tgz"
pascal@20162 11 WEB_SITE="https://www.tuxera.com/community/open-source-ntfs-3g/"
pascal@20162 12 WGET_URL="https://tuxera.com/opensource/$TARBALL"
pascal@2562 13 CONFIG_FILES="/etc/filesystems"
jozee@4969 14 TAGS="windows"
pankso@47 15
pascal@15000 16 DEPENDS="fuse attr"
pascal@20163 17 BUILD_DEPENDS="fuse-dev attr-dev util-linux-uuid-dev libtool"
pascal@15000 18
pascal@24071 19 current_version()
pascal@24071 20 {
pascal@24071 21 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \
pascal@24071 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24071 23 }
pascal@24071 24
pankso@47 25 # Rules to configure and make the package.
pankso@47 26 compile_rules()
pankso@47 27 {
pascal@20163 28 mkdir -p $DESTDIR/lib
pankso@47 29 ./configure --prefix=/usr \
monghitri@14103 30 --disable-static \
mojo@17540 31 --with-fuse=internal \
pascal@2562 32 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@2562 33 make &&
pascal@15000 34 make DESTDIR=$DESTDIR install
pankso@47 35 }
pankso@47 36
pankso@47 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@47 38 genpkg_rules()
pankso@47 39 {
pascal@19748 40 mkdir -p $fs/etc
pascal@19709 41 cp -a $install/. $fs/.
pascal@19709 42 rm -rf $fs/usr/bin/ntfs[a-z]* $fs/sbin/mkfs.ntfs $fs/usr/s*
pascal@19748 43 rm -rf $fs/usr/share $fs/usr/lib/pkgconfig $fs/usr/lib/*.a $fs/usr/include
pascal@2562 44 touch $fs/etc/filesystems
monghitri@14125 45 #this link allow udisks2 to use ntfs-3g
monghitri@14103 46 cd $fs/sbin
monghitri@14103 47 ln -s mount.ntfs-3g mount.ntfs
pankso@47 48 }
pascal@2126 49
pascal@2126 50 # Pre remove and post install commands for Tazpkg.
pascal@2126 51 pre_remove()
pascal@2126 52 {
pascal@18730 53 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
pascal@2126 54 }
pascal@2126 55
pascal@2126 56 post_install()
pascal@2126 57 {
pascal@18730 58 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
pascal@18730 59 echo "$PACKAGE" >> "$1/etc/filesystems"
pascal@2126 60 }