summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a79c186e0e474045662bacde73ad2c1e3104ff6 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
# Maintainer: Richard Schwab <mail NOSPAM w.tf-w.tf>

pkgname=libiphone-git
pkgver=1.2.0.r13.gdf1f5c4
pkgrel=1
pkgdesc="libiphone is a software library that talks the native Apple USB protocols that the iPhone uses. (no cython support for now)"
url="http://libimobiledevice.org/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('gnutls'
#	'fuse'
#	'glib2'
	'libplist'
	'libusb'
#	'libxml2'
#	'libxml++' 
	'usbmuxd')
makedepends=('autoconf'
	'automake'
	'gcc'
	'git'
	'make'
	'pkgconfig')
optdepends=('doxygen: Documentation')
provides=('libiphone')
source=('libiphone::git+http://git.sukimashita.com/libimobiledevice.git'
	'SSLv23.patch')
md5sums=('SKIP'
         '1cf25e39d353e02c7c8daaa41bd671e9')

prepare() {
	cd libiphone
	patch -p1 < ../SSLv23.patch
}

pkgver() {
	cd libiphone
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd libiphone

	msg "Configuring..."

	./autogen.sh --prefix=/usr --without-cython

	msg "Starting make..."
	make
}

package() {
	cd libiphone
	make DESTDIR=${pkgdir} install
}