wok view usbmuxd/receipt @ rev 25723

added recipe for xfce4-mixer-lang
author Hans-G?nter Theisgen
date Sat Aug 17 16:43:37 2024 +0100 (2 months ago)
parents 922f061231c2
children
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
11 WGET_URL="http://marcansoft.com/uploads/$PACKAGE/$TARBALL"
13 DEPENDS="libusb libplist"
14 BUILD_DEPENDS="cmake libusb-dev libplist-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/libimobiledevice/usbmuxd/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 patch -Np1 -i $stuff/usbmuxd-udevuser.patch
28 sed -i 's|/lib/udev/rules.d/|/etc/udev/rules.d/|g' udev/CMakeLists.txt
29 mkdir build
30 cd build
31 cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX=""
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib $fs/etc
39 cp -a $install/etc/udev $fs/etc
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 }
45 post_install()
46 {
47 # adduser usbmuxd if needed
48 if ! grep -q usbmuxd "$1/etc/passwd"; then
49 echo
50 echo -n "Adding user privoxy..."
51 chroot "$1/" adduser -s /bin/false -H -D -u 140 usbmuxd
52 status
53 fi
55 if ! grep -q usbmuxd "$1/etc/group"; then
56 echo
57 echo -n "Adding group privoxy..."
58 chroot "$1/" addgroup -g 140 usbmuxd
59 status
60 fi
61 }
63 # Del user usbmuxd when pkg is removed.
64 post_remove()
65 {
66 chroot "$1/" deluser usbmuxd
67 chroot "$1/" delgroup usbmuxd
68 }