wok-next view ntfs-3g/receipt @ rev 20409

lxde-icon-theme-base: fix loop depends; lxqt: add lxmenu-data to dependencies; ntfs-3g: tiny edits.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 06 16:41:02 2018 +0200 (2018-01-06)
parents e44a1a92452b
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ntfs-3g"
4 VERSION="2017.3.23"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read/write NTFS driver"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2"
9 WEB_SITE="https://www.tuxera.com/community/open-source-ntfs-3g/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/postlfs/ntfs-3g.html"
12 TARBALL="ntfs-3g_ntfsprogs-$VERSION.tgz"
13 WGET_URL="https://tuxera.com/opensource/$TARBALL"
15 BUILD_DEPENDS="util-linux-uuid-dev libtool"
16 SPLIT="ntfsprogs ntfsprogs-extra ntfs-3g ntfs-3g-dev"
18 compile_rules() {
19 touch $src/libtoolT
21 ./configure \
22 --enable-extras \
23 $CONFIGURE_ARGS &&
24 make &&
25 mkdir -p $install/lib &&
26 make install &&
28 mkdir -p $install/etc && touch $install/etc/filesystems &&
29 #this link allow udisks2 to use ntfs-3g
30 ln -s mount.ntfs-3g $install/sbin/mount.ntfs
31 }
33 genpkg_rules() {
34 TAGS="windows"
35 case $PACKAGE in
36 ntfsprogs)
37 copy mkfs.ntfs mkntfs ntfscat ntfsclone ntfscluster ntfscmp ntfscp \
38 ntfsfix ntfsinfo ntfslabel ntfsls ntfsresize ntfsundelete
39 CAT="system-tools|ntfsprogs utilities"
40 DEPENDS="ntfs-3g util-linux-uuid"
41 ;;
42 *-extra)
43 copy ntfsrecover ntfssecaudit ntfstruncate ntfsusermap ntfswipe
44 CAT="system-tools|extra ntfsprogs utilities"
45 DEPENDS="ntfs-3g"
46 ;;
47 ntfs-3g)
48 copy @std @rm
49 CONFIG_FILES="/etc/filesystems"
50 DEPENDS=" "
51 ;;
52 *-dev)
53 copy @dev
54 PROVIDE="ntfsprogs-dev"
55 ;;
56 esac
57 }
59 post_install_ntfs_3g() {
60 grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
61 echo "$PACKAGE" >> "$1/etc/filesystems"
62 }
63 pre_remove_ntfs_3g() {
64 sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
65 }