wok annotate ntfs-3g/receipt @ rev 25696
created recipe for dool
author | Hans-G?nter Theisgen |
---|---|
date | Sat May 11 17:17:55 2024 +0100 (4 months ago) |
parents | 39bad6014f66 |
children |
rev | line source |
---|---|
pankso@47 | 1 # SliTaz package receipt. |
pankso@47 | 2 |
pankso@47 | 3 PACKAGE="ntfs-3g" |
pascal@25652 | 4 VERSION="2022.10.3" |
pankso@202 | 5 CATEGORY="system-tools" |
Hans-G?nter@25004 | 6 TAGS="windows" |
Hans-G?nter@25004 | 7 SHORT_DESC="Read and write NTFS driver for FUSE." |
pankso@47 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
pascal@25653 | 10 WEB_SITE="https://github.com/tuxera/ntfs-3g/" |
Hans-G?nter@25004 | 11 |
monghitri@14103 | 12 SOURCE="ntfs-3g_ntfsprogs" |
monghitri@14103 | 13 TARBALL="$SOURCE-$VERSION.tgz" |
pascal@25653 | 14 WGET_URL="https://github.com/tuxera/ntfs-3g/archive/refs/tags/$VERSION.tar.gz" |
Hans-G?nter@25004 | 15 |
Hans-G?nter@25004 | 16 DEPENDS="attr fuse" |
pascal@25655 | 17 BUILD_DEPENDS="attr-dev fuse-dev libtool util-linux-uuid-dev libgcrypt-dev autoconf" |
Hans-G?nter@25004 | 18 |
pascal@2562 | 19 CONFIG_FILES="/etc/filesystems" |
pascal@15000 | 20 |
pascal@25600 | 21 # What is the latest version available today? |
pascal@24071 | 22 current_version() |
pascal@24071 | 23 { |
pascal@24071 | 24 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \ |
pascal@25600 | 25 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24071 | 26 } |
pascal@24071 | 27 |
pankso@47 | 28 # Rules to configure and make the package. |
pankso@47 | 29 compile_rules() |
pankso@47 | 30 { |
pascal@20163 | 31 mkdir -p $DESTDIR/lib |
pascal@25654 | 32 ./autogen.sh |
Hans-G?nter@25004 | 33 ./configure \ |
Hans-G?nter@25004 | 34 --prefix=/usr \ |
Hans-G?nter@25004 | 35 --disable-static \ |
Hans-G?nter@25004 | 36 --with-fuse=internal \ |
Hans-G?nter@25004 | 37 --mandir=/usr/share/man \ |
Hans-G?nter@25004 | 38 $CONFIGURE_ARGS && |
pascal@2562 | 39 make && |
Hans-G?nter@25004 | 40 make install DESTDIR=$DESTDIR |
pankso@47 | 41 } |
pankso@47 | 42 |
pankso@47 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@47 | 44 genpkg_rules() |
pankso@47 | 45 { |
pascal@19748 | 46 mkdir -p $fs/etc |
Hans-G?nter@25004 | 47 cp -a $install/. $fs/. |
Hans-G?nter@25004 | 48 rm -rf $fs/usr/bin/ntfs[a-z]* |
Hans-G?nter@25004 | 49 rm -rf $fs/sbin/mkfs.ntfs |
Hans-G?nter@25004 | 50 rm -rf $fs/usr/s* |
Hans-G?nter@25004 | 51 rm -rf $fs/usr/share |
Hans-G?nter@25004 | 52 rm -rf $fs/usr/lib/pkgconfig |
Hans-G?nter@25004 | 53 rm -rf $fs/usr/lib/*.a |
Hans-G?nter@25004 | 54 rm -rf $fs/usr/include |
Hans-G?nter@25004 | 55 touch $fs/etc/filesystems |
Hans-G?nter@25004 | 56 #this link allows udisks2 to use ntfs-3g |
monghitri@14103 | 57 cd $fs/sbin |
monghitri@14103 | 58 ln -s mount.ntfs-3g mount.ntfs |
pankso@47 | 59 } |
pascal@2126 | 60 |
pascal@2126 | 61 # Pre remove and post install commands for Tazpkg. |
pascal@2126 | 62 pre_remove() |
pascal@2126 | 63 { |
Hans-G?nter@25004 | 64 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems" |
pascal@2126 | 65 } |
pascal@2126 | 66 |
pascal@2126 | 67 post_install() |
pascal@2126 | 68 { |
pascal@18730 | 69 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \ |
pascal@18730 | 70 echo "$PACKAGE" >> "$1/etc/filesystems" |
pascal@2126 | 71 } |