wok view ntfs-3g/receipt @ rev 25655

Up ntfs-3g (2022.10.3) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 06 14:41:54 2024 +0000 (3 months ago)
parents 39bad6014f66
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://github.com/tuxera/ntfs-3g/"
12 SOURCE="ntfs-3g_ntfsprogs"
13 TARBALL="$SOURCE-$VERSION.tgz"
14 WGET_URL="https://github.com/tuxera/ntfs-3g/archive/refs/tags/$VERSION.tar.gz"
16 DEPENDS="attr fuse"
17 BUILD_DEPENDS="attr-dev fuse-dev libtool util-linux-uuid-dev libgcrypt-dev autoconf"
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 ./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 }