wok annotate ntfs-3g/receipt @ rev 19748
ntfs-3g: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 18 18:47:38 2017 +0100 (2017-02-18) |
parents | f6beea7fe09b |
children | d32e9a8cd03a |
rev | line source |
---|---|
pankso@47 | 1 # SliTaz package receipt. |
pankso@47 | 2 |
pankso@47 | 3 PACKAGE="ntfs-3g" |
devl547@16413 | 4 VERSION="2014.2.15" |
pankso@202 | 5 CATEGORY="system-tools" |
al@17992 | 6 SHORT_DESC="Read/write NTFS driver for FUSE" |
pankso@47 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
monghitri@14103 | 9 SOURCE="ntfs-3g_ntfsprogs" |
monghitri@14103 | 10 TARBALL="$SOURCE-$VERSION.tgz" |
monghitri@14103 | 11 WEB_SITE="http://tuxera.com/opensource" |
pankso@47 | 12 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@2562 | 13 CONFIG_FILES="/etc/filesystems" |
jozee@4969 | 14 TAGS="windows" |
pankso@47 | 15 |
pascal@15000 | 16 DEPENDS="fuse attr" |
pascal@15000 | 17 BUILD_DEPENDS="fuse-dev attr-dev" |
pascal@15000 | 18 |
pankso@47 | 19 # Rules to configure and make the package. |
pankso@47 | 20 compile_rules() |
pankso@47 | 21 { |
pankso@47 | 22 ./configure --prefix=/usr \ |
monghitri@14103 | 23 --disable-static \ |
mojo@17540 | 24 --with-fuse=internal \ |
pascal@2562 | 25 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2562 | 26 make && |
pascal@15000 | 27 make DESTDIR=$DESTDIR install |
pankso@47 | 28 } |
pankso@47 | 29 |
pankso@47 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@47 | 31 genpkg_rules() |
pankso@47 | 32 { |
pascal@19748 | 33 mkdir -p $fs/etc |
pascal@19709 | 34 cp -a $install/. $fs/. |
pascal@19709 | 35 rm -rf $fs/usr/bin/ntfs[a-z]* $fs/sbin/mkfs.ntfs $fs/usr/s* |
pascal@19748 | 36 rm -rf $fs/usr/share $fs/usr/lib/pkgconfig $fs/usr/lib/*.a $fs/usr/include |
pascal@2562 | 37 touch $fs/etc/filesystems |
monghitri@14125 | 38 #this link allow udisks2 to use ntfs-3g |
monghitri@14103 | 39 cd $fs/sbin |
monghitri@14103 | 40 ln -s mount.ntfs-3g mount.ntfs |
pankso@47 | 41 } |
pascal@2126 | 42 |
pascal@2126 | 43 # Pre remove and post install commands for Tazpkg. |
pascal@2126 | 44 pre_remove() |
pascal@2126 | 45 { |
pascal@18730 | 46 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems" |
pascal@2126 | 47 } |
pascal@2126 | 48 |
pascal@2126 | 49 post_install() |
pascal@2126 | 50 { |
pascal@18730 | 51 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \ |
pascal@18730 | 52 echo "$PACKAGE" >> "$1/etc/filesystems" |
pascal@2126 | 53 } |