aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libplist/APKBUILD
blob: c4e2ff487d571b1768700ba198f73b26accb0357 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libplist
pkgver=1.4
pkgrel=1
pkgdesc="A library to handle Apple Property List format whereas it's binary or XML"
url="http://libimobiledevice.org/"
arch="all"
license="GPL2 LGPL2.1"
depends=""
depends_dev="libxml2-dev glib-dev"
makedepends="cmake swig python-dev $depends_dev"
subpackages="$pkgname-dev py-$pkgname:py $pkgname-util $pkgname++:cxx"
source="http://www.libimobiledevice.org/downloads/libplist-$pkgver.tar.bz2"

_builddir="$srcdir"/build
_src="$srcdir"/$pkgname-$pkgver
build() {
	cd "$srcdir"
	mkdir -p "$_builddir"
	cd "$_builddir"
	cmake "$_src" -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr
	make || return 1
}

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

util() {
	pkgdesc="Util for libplist"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

py() {
	pkgdesc="Python bindings for libplist"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

cxx() {
	pkgdesc="C++ bindings to libplist"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*++.so.* "$subpkgdir"/usr/lib/
}

md5sums="2ef8bf33d9aeb078c6d8b6ecafbc6396  libplist-1.4.tar.bz2"