aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/libimobiledevice/APKBUILD
blob: 1fc0fdc8bfeff199967053fa8aa646b157a45b13 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libimobiledevice
pkgver=1.2.0
pkgrel=0
pkgdesc="Library that talks the protocols to support iPhone and iPod Touch devices on Linux"
url="http://libimobiledevice.org/"
arch="all"
license="GPL2 LGPL2.1"
depends=""
depends_dev=""
makedepends="$depends_dev gnutls-dev openssl-dev libgcrypt-dev 
	libusbmuxd-dev libtasn1-dev pkgconfig libtool
	automake autoconf "
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--disable-static \
		--with-cython
	make || return 1
}

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

md5sums="8757900ba7bbe2ef5f54342415d0223e  libimobiledevice-1.2.0.tar.bz2"
sha256sums="786b0de0875053bf61b5531a86ae8119e320edab724fc62fe2150cc931f11037  libimobiledevice-1.2.0.tar.bz2"
sha512sums="0de5f768aeb5d62445892855d84ceaff776f6667733c351ed6c34bf9d500802762d1a06e5efdf57f33cafc9ee788041cd9b6748fb9bad6c2e4ae2f9b9aa93589  libimobiledevice-1.2.0.tar.bz2"