wok-next annotate 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 |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
slaxemulator@10262 | 2 |
slaxemulator@10262 | 3 PACKAGE="usbmuxd" |
slaxemulator@11734 | 4 VERSION="1.0.7" |
slaxemulator@10262 | 5 CATEGORY="misc" |
slaxemulator@10262 | 6 SHORT_DESC="USB Multiplex Daemon" |
slaxemulator@10262 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15363 | 8 LICENSE="GPL2 GPL3 LGPL2.1" |
al@20464 | 9 WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/" |
al@20464 | 10 |
slaxemulator@10262 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@10262 | 12 WGET_URL="http://marcansoft.com/uploads/$PACKAGE/$TARBALL" |
slaxemulator@10262 | 13 |
pascal@15363 | 14 BUILD_DEPENDS="cmake libusb-dev libplist-dev" |
al@20464 | 15 SPLIT="usbmuxd-dev" |
pascal@15363 | 16 |
al@20464 | 17 compile_rules() { |
slaxemulator@10262 | 18 sed -i 's|/lib/udev/rules.d/|/etc/udev/rules.d/|g' udev/CMakeLists.txt |
slaxemulator@10262 | 19 mkdir build |
slaxemulator@10262 | 20 cd build |
slaxemulator@10262 | 21 cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX="" |
slaxemulator@10262 | 22 make && make install |
slaxemulator@10262 | 23 } |
slaxemulator@10262 | 24 |
al@20464 | 25 genpkg_rules() { |
al@20464 | 26 case $PACKAGE in |
al@20464 | 27 usbmuxd) |
al@20464 | 28 mkdir -p $fs/usr/lib $fs/etc |
al@20464 | 29 cp -a $install/etc/udev $fs/etc |
al@20464 | 30 cp -a $install/usr/bin $fs/usr |
al@20464 | 31 cp -a $install/usr/sbin $fs/usr |
al@20464 | 32 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@20464 | 33 DEPENDS="libusb libplist" |
al@20464 | 34 ;; |
al@20464 | 35 *-dev) |
al@20464 | 36 mkdir -p $fs/usr/lib |
al@20464 | 37 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
al@20464 | 38 cp -a $install/usr/include $fs/usr |
al@20464 | 39 ;; |
al@20464 | 40 esac |
slaxemulator@10262 | 41 } |
slaxemulator@10262 | 42 |
al@20464 | 43 # Add user usbmuxd if needed |
al@20464 | 44 post_install_usbmuxd() { |
pascal@18730 | 45 if ! grep -q usbmuxd "$1/etc/passwd"; then |
slaxemulator@10262 | 46 echo -n "Adding user privoxy..." |
pascal@18730 | 47 chroot "$1/" adduser -s /bin/false -H -D -u 140 usbmuxd |
slaxemulator@10262 | 48 status |
slaxemulator@10262 | 49 fi |
slaxemulator@10262 | 50 |
pascal@18730 | 51 if ! grep -q usbmuxd "$1/etc/group"; then |
slaxemulator@10262 | 52 echo -n "Adding group privoxy..." |
pascal@18730 | 53 chroot "$1/" addgroup -g 140 usbmuxd |
slaxemulator@10262 | 54 status |
slaxemulator@10262 | 55 fi |
slaxemulator@10262 | 56 } |
slaxemulator@10262 | 57 |
al@20464 | 58 # Del user usbmuxd when pkg is removed |
al@20464 | 59 post_remove_usbmuxd() { |
pascal@18730 | 60 chroot "$1/" deluser usbmuxd |
pascal@18730 | 61 chroot "$1/" delgroup usbmuxd |
slaxemulator@10262 | 62 } |