wok view ntfs-3g/receipt @ rev 25652

Up ntfs-3g (2022.10.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 06 11:59:08 2024 +0000 (3 months ago)
parents 7364ffdaaa60
children 821e70f16e63
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://github.com/tuxera/ntfs-3g/archive/refs/tags/$VERSION.tar.gz"
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \
25 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 mkdir -p $DESTDIR/lib
32 ./configure \
33 --prefix=/usr \
34 --disable-static \
35 --with-fuse=internal \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install DESTDIR=$DESTDIR
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/etc
46 cp -a $install/. $fs/.
47 rm -rf $fs/usr/bin/ntfs[a-z]*
48 rm -rf $fs/sbin/mkfs.ntfs
49 rm -rf $fs/usr/s*
50 rm -rf $fs/usr/share
51 rm -rf $fs/usr/lib/pkgconfig
52 rm -rf $fs/usr/lib/*.a
53 rm -rf $fs/usr/include
54 touch $fs/etc/filesystems
55 #this link allows udisks2 to use ntfs-3g
56 cd $fs/sbin
57 ln -s mount.ntfs-3g mount.ntfs
58 }
60 # Pre remove and post install commands for Tazpkg.
61 pre_remove()
62 {
63 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
64 }
66 post_install()
67 {
68 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
69 echo "$PACKAGE" >> "$1/etc/filesystems"
70 }