wok view ntfs-3g/receipt @ rev 19747

xfce-utils: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 18 18:41:09 2017 +0100 (2017-02-18)
parents 89d753238f44
children d2957c730ab4
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2014.2.15"
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="http://tuxera.com/opensource"
12 WGET_URL="$WEB_SITE/$TARBALL"
13 CONFIG_FILES="/etc/filesystems"
14 TAGS="windows"
16 DEPENDS="fuse attr"
17 BUILD_DEPENDS="fuse-dev attr-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure --prefix=/usr \
23 --disable-static \
24 --with-fuse=internal \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/etc $fs/usr/lib
34 cp -a $install/. $fs/.
35 rm -rf $fs/usr/bin/ntfs[a-z]* $fs/sbin/mkfs.ntfs $fs/usr/s*
36 rm -rf $fs/usr/share $fs/usr/lib $fs/usr/include
37 ln -s ../../lib/libntfs-3g.so $fs/usr/lib/libntfs-3g.so
38 touch $fs/etc/filesystems
39 #this link allow udisks2 to use ntfs-3g
40 cd $fs/sbin
41 ln -s mount.ntfs-3g mount.ntfs
42 }
44 # Pre remove and post install commands for Tazpkg.
45 pre_remove()
46 {
47 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
48 }
50 post_install()
51 {
52 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
53 echo "$PACKAGE" >> "$1/etc/filesystems"
54 }