blob: 6695533239376d9f7730270b417de50859b8fe6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $Id$
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Gabriel Martinez < reitaka at gmail dot com >
pkgname=usbmuxd
pkgver=1.0.9
pkgrel=1
pkgdesc="USB Multiplex Daemon"
url="http://marcansoft.com/blog/iphonelinux/usbmuxd/"
arch=('i686' 'x86_64')
license=('GPL2' 'GPL3')
depends=('libimobiledevice')
makedepends=('git')
install=usbmuxd.install
source=("git+http://git.sukimashita.com/usbmuxd.git#commit=c92b4f59aba053a3df1ae67c49403122650ad996"
'usbmuxd.service'
'39-usbmuxd.rules')
md5sums=('SKIP'
'dae0660f972510a6483992b5b81e1b5a'
'dc4b2893651149eccbf7b2c8467cd288')
prepare() {
cd usbmuxd
sed -i -e 's|udevrulesdir = /lib/udev/rules.d|udevrulesdir = /usr/lib/udev/rules.d|' Makefile.am
}
build() {
cd usbmuxd
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr --sbindir=/usr/bin
make
}
package() {
cd usbmuxd
make DESTDIR="${pkgdir}" install
# install systemd service file
install -D -m644 ../usbmuxd.service "${pkgdir}/usr/lib/systemd/system/usbmuxd.service"
# use udev rule that works with systemd
install -m644 ../39-usbmuxd.rules "${pkgdir}/usr/lib/udev/rules.d/"
}
|