summaryrefslogtreecommitdiff
path: root/testing/libplist/APKBUILD
blob: f7ff87e6bd7c26bcd71004f52f765502e7dfe19c (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libplist
pkgver=2.0.0
pkgrel=0
pkgdesc="A library to handle Apple Property List format in binary or XML "
url="http://www.libimobiledevice.org/"
arch="all"
license="GPL2 LGPL2.1"
makedepends="automake autoconf libtool cython-dev"
subpackages="$pkgname-dev py2-$pkgname:_py"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/libimobiledevice/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	sh ./autogen.sh --prefix=/usr
	make
}

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

_py() {
	pkgdesc="Python2 bindings for $pkgname"
	mkdir -p "$subpkgdir"/usr/lib
	mv $pkgdir/usr/lib/* "$subpkgdir"/usr/lib
}

sha512sums="a3534a585fd92cdcba552a8ec176d6da1d1c10b6639f9c01925e1de70689480b024a942f5686fcb0a356b450126e40aa3e2132ef66652806c46ee18a1d6372c8  libplist-2.0.0.tar.gz"