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