diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-01-14 10:18:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-01-14 12:38:23 +0000 |
commit | 465eb8880e278ce6c56b8d1105019568424aefd7 (patch) | |
tree | 49e0b6dd5e4202475d09841f8a5c97666c73a245 /testing/libplist/APKBUILD | |
parent | a1ab3c1c51267aabb205f796c277822dbd750810 (diff) | |
download | aports-465eb8880e278ce6c56b8d1105019568424aefd7.tar.bz2 aports-465eb8880e278ce6c56b8d1105019568424aefd7.tar.xz |
testing/libplist: new aport
A library to handle Apple Property List format whereas it's binary or XML
http://libimobiledevice.org/
Diffstat (limited to 'testing/libplist/APKBUILD')
-rw-r--r-- | testing/libplist/APKBUILD | 48 |
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" |