wok view ntfs-3g/receipt @ rev 24099

Up openssh (8.7p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 16 08:39:38 2021 +0000 (2021-09-16)
parents 8e4d8dc52748
children 72f2704d3ae0
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2017.3.23"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read/write NTFS driver for FUSE"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="ntfs-3g_ntfsprogs"
10 TARBALL="$SOURCE-$VERSION.tgz"
11 WEB_SITE="https://www.tuxera.com/community/open-source-ntfs-3g/"
12 WGET_URL="https://tuxera.com/opensource/$TARBALL"
13 CONFIG_FILES="/etc/filesystems"
14 TAGS="windows"
16 DEPENDS="fuse attr"
17 BUILD_DEPENDS="fuse-dev attr-dev util-linux-uuid-dev libtool"
19 current_version()
20 {
21 wget -O - https://github.com/tuxera/ntfs-3g/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir -p $DESTDIR/lib
29 ./configure --prefix=/usr \
30 --disable-static \
31 --with-fuse=internal \
32 --mandir=/usr/share/man $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc
41 cp -a $install/. $fs/.
42 rm -rf $fs/usr/bin/ntfs[a-z]* $fs/sbin/mkfs.ntfs $fs/usr/s*
43 rm -rf $fs/usr/share $fs/usr/lib/pkgconfig $fs/usr/lib/*.a $fs/usr/include
44 touch $fs/etc/filesystems
45 #this link allow udisks2 to use ntfs-3g
46 cd $fs/sbin
47 ln -s mount.ntfs-3g mount.ntfs
48 }
50 # Pre remove and post install commands for Tazpkg.
51 pre_remove()
52 {
53 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
54 }
56 post_install()
57 {
58 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
59 echo "$PACKAGE" >> "$1/etc/filesystems"
60 }