wok-6.x view ntfs-3g/receipt @ rev 14778

Up Manaplus
author Brenton Scott <admin@trixarian.net>
date Wed Jul 03 16:59:13 2013 +0200 (2013-07-03)
parents 6e4353070e4a
children 380ffe05937a
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 DEPENDS="fuse attr"
9 BUILD_DEPENDS="fuse-dev attr-dev"
10 SOURCE="ntfs-3g_ntfsprogs"
11 TARBALL="$SOURCE-$VERSION.tgz"
12 WEB_SITE="http://tuxera.com/opensource"
13 WGET_URL="$WEB_SITE/$TARBALL"
14 CONFIG_FILES="/etc/filesystems"
15 TAGS="windows"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr \
22 --disable-static \
23 --with-fuse=external \
24 --mandir=/usr/share/man $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/lib $fs/usr/lib $fs/etc $fs/sbin $fs/usr/bin
33 cp -a $install/bin $fs/
34 cp -a $install/sbin/*-3g $fs/sbin
35 cp -a $install/lib/*-3g.so* $fs/lib
36 cp -a $install/usr/lib/*-3g.so* $fs/usr/lib
37 cp -a $install/usr/bin/*-3g* $fs/usr/bin
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
43 }
45 # Pre remove and post install commands for Tazpkg.
46 pre_remove()
47 {
48 sed -i '/^$PACKAGE$/d' $1/etc/filesystems
49 }
51 post_install()
52 {
53 grep -qs ^$PACKAGE$ $1/etc/filesystems || \
54 echo "$PACKAGE" >> $1/etc/filesystems
55 }