wok view ntfs-3g/receipt @ rev 25140
updated pigz (2.4 -> 2.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 14:12:55 2022 +0100 (2022-06-29) |
parents | 72f2704d3ae0 |
children | 7364ffdaaa60 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2021.8.22"
5 CATEGORY="system-tools"
6 TAGS="windows"
7 SHORT_DESC="Read and write NTFS driver for FUSE."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.tuxera.com/community/open-source-ntfs-3g/"
12 SOURCE="ntfs-3g_ntfsprogs"
13 TARBALL="$SOURCE-$VERSION.tgz"
14 WGET_URL="https://tuxera.com/opensource/$TARBALL"
16 DEPENDS="attr fuse"
17 BUILD_DEPENDS="attr-dev fuse-dev libtool util-linux-uuid-dev"
19 CONFIG_FILES="/etc/filesystems"
21 current_version()
22 {
23 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir -p $DESTDIR/lib
31 ./configure \
32 --prefix=/usr \
33 --disable-static \
34 --with-fuse=internal \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/etc
45 cp -a $install/. $fs/.
46 rm -rf $fs/usr/bin/ntfs[a-z]*
47 rm -rf $fs/sbin/mkfs.ntfs
48 rm -rf $fs/usr/s*
49 rm -rf $fs/usr/share
50 rm -rf $fs/usr/lib/pkgconfig
51 rm -rf $fs/usr/lib/*.a
52 rm -rf $fs/usr/include
53 touch $fs/etc/filesystems
54 #this link allows udisks2 to use ntfs-3g
55 cd $fs/sbin
56 ln -s mount.ntfs-3g mount.ntfs
57 }
59 # Pre remove and post install commands for Tazpkg.
60 pre_remove()
61 {
62 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
63 }
65 post_install()
66 {
67 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
68 echo "$PACKAGE" >> "$1/etc/filesystems"
69 }