wok view ntfs-3g/receipt @ rev 15999

Add sawman - DirectFB Window Manager
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 02 18:47:57 2014 +0100 (2014-03-02)
parents 58941a070b50
children 50a3e04c6f5b
line source
1 # SliTaz package receipt.
3 PACKAGE="ntfs-3g"
4 VERSION="2013.1.13"
5 CATEGORY="system-tools"
6 SHORT_DESC="The free ntfs driver."
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 cd $src
23 ./configure --prefix=/usr \
24 --disable-static \
25 --with-fuse=external \
26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/lib $fs/usr/lib $fs/etc $fs/sbin $fs/usr/bin
35 cp -a $install/bin $fs/
36 cp -a $install/sbin/*-3g $fs/sbin
37 cp -a $install/lib/*-3g.so* $fs/lib
38 cp -a $install/usr/lib/*-3g.so* $fs/usr/lib
39 cp -a $install/usr/bin/*-3g* $fs/usr/bin
40 touch $fs/etc/filesystems
41 #this link allow udisks2 to use ntfs-3g
42 cd $fs/sbin
43 ln -s mount.ntfs-3g mount.ntfs
45 }
47 # Pre remove and post install commands for Tazpkg.
48 pre_remove()
49 {
50 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
51 }
53 post_install()
54 {
55 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
56 echo "$PACKAGE" >> $1/etc/filesystems
57 }