wok-current view ntfs-3g/receipt @ rev 25698

Fix ntfs-3g receipt
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 19:01:01 2024 +0000 (5 weeks ago)
parents bf7fc7b1447c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2022.10.3"
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/company/open-source/"
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 \
18 libgcrypt-dev autoconf"
20 CONFIG_FILES="/etc/filesystems"
22 current_version()
23 {
24 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 mkdir -p $DESTDIR/lib
32 ./autogen.sh
33 ./configure \
34 --prefix=/usr \
35 --disable-static \
36 --with-fuse=internal \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make &&
40 make install DESTDIR=$DESTDIR
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/etc
47 cp -a $install/. $fs/.
48 rm -rf $fs/usr/bin/ntfs[a-z]*
49 rm -rf $fs/sbin/mkfs.ntfs
50 rm -rf $fs/usr/s*
51 rm -rf $fs/usr/share
52 rm -rf $fs/usr/lib/pkgconfig
53 rm -rf $fs/usr/lib/*.*a
54 rm -rf $fs/usr/include
55 touch $fs/etc/filesystems
56 #this link allows udisks2 to use ntfs-3g
57 cd $fs/sbin
58 ln -s mount.ntfs-3g mount.ntfs
59 }
61 # Pre remove and post install commands for Tazpkg.
62 pre_remove()
63 {
64 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
65 }
67 post_install()
68 {
69 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
70 echo "$PACKAGE" >> "$1/etc/filesystems"
71 }