wok-next diff usbmuxd/receipt @ rev 20939
Fix brisk-menu, mate-backgrounds, mate-user-guide
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 26 09:13:55 2018 +0300 (2018-08-26) |
parents | 9e01bc6321ea |
children | d2950281f122 |
line diff
1.1 --- a/usbmuxd/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/usbmuxd/receipt Sun Aug 26 09:13:55 2018 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="usbmuxd" 1.8 VERSION="1.0.7" 1.9 @@ -6,18 +6,15 @@ 1.10 SHORT_DESC="USB Multiplex Daemon" 1.11 MAINTAINER="slaxemulator@gmail.com" 1.12 LICENSE="GPL2 GPL3 LGPL2.1" 1.13 +WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 -WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/" 1.17 WGET_URL="http://marcansoft.com/uploads/$PACKAGE/$TARBALL" 1.18 1.19 -DEPENDS="libusb libplist" 1.20 BUILD_DEPENDS="cmake libusb-dev libplist-dev" 1.21 +SPLIT="usbmuxd-dev" 1.22 1.23 -# Rules to configure and make the package. 1.24 -compile_rules() 1.25 -{ 1.26 - cd $src 1.27 - patch -Np1 -i $stuff/usbmuxd-udevuser.patch 1.28 +compile_rules() { 1.29 sed -i 's|/lib/udev/rules.d/|/etc/udev/rules.d/|g' udev/CMakeLists.txt 1.30 mkdir build 1.31 cd build 1.32 @@ -25,19 +22,26 @@ 1.33 make && make install 1.34 } 1.35 1.36 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 -genpkg_rules() 1.38 -{ 1.39 - mkdir -p $fs/usr/lib $fs/etc 1.40 - cp -a $install/etc/udev $fs/etc 1.41 - cp -a $install/usr/bin $fs/usr 1.42 - cp -a $install/usr/sbin $fs/usr 1.43 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.44 +genpkg_rules() { 1.45 + case $PACKAGE in 1.46 + usbmuxd) 1.47 + mkdir -p $fs/usr/lib $fs/etc 1.48 + cp -a $install/etc/udev $fs/etc 1.49 + cp -a $install/usr/bin $fs/usr 1.50 + cp -a $install/usr/sbin $fs/usr 1.51 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.52 + DEPENDS="libusb libplist" 1.53 + ;; 1.54 + *-dev) 1.55 + mkdir -p $fs/usr/lib 1.56 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.57 + cp -a $install/usr/include $fs/usr 1.58 + ;; 1.59 + esac 1.60 } 1.61 1.62 -post_install() 1.63 -{ 1.64 - # adduser usbmuxd if needed 1.65 +# Add user usbmuxd if needed 1.66 +post_install_usbmuxd() { 1.67 if ! grep -q usbmuxd "$1/etc/passwd"; then 1.68 echo -n "Adding user privoxy..." 1.69 chroot "$1/" adduser -s /bin/false -H -D -u 140 usbmuxd 1.70 @@ -51,9 +55,8 @@ 1.71 fi 1.72 } 1.73 1.74 -# Del user usbmuxd when pkg is removed. 1.75 -post_remove() 1.76 -{ 1.77 +# Del user usbmuxd when pkg is removed 1.78 +post_remove_usbmuxd() { 1.79 chroot "$1/" deluser usbmuxd 1.80 chroot "$1/" delgroup usbmuxd 1.81 }