aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/libplist/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/libplist/APKBUILD b/testing/libplist/APKBUILD
new file mode 100644
index 0000000000..0c1446cf01
--- /dev/null
+++ b/testing/libplist/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libplist
+pkgver=1.3
+pkgrel=0
+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://cloud.github.com/downloads/JonathanBeck/libplist/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="0f48f4da8ddba5d7e186307622bf2c62 libplist-1.3.tar.bz2"