diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-04-17 17:53:47 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-04-17 17:53:47 +0200 |
commit | f21a16fc7662995b287dfb154a850efc92e0689b (patch) | |
tree | cf292435a80e47fbc6edd13ea528893ac7fd91f4 /main/libplist | |
parent | 9a84ca2d749c76ac79c4baded400d636a9443224 (diff) | |
download | aports-f21a16fc7662995b287dfb154a850efc92e0689b.tar.bz2 aports-f21a16fc7662995b287dfb154a850efc92e0689b.tar.xz |
main/libplist: move to main
Diffstat (limited to 'main/libplist')
-rw-r--r-- | main/libplist/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/main/libplist/APKBUILD b/main/libplist/APKBUILD new file mode 100644 index 0000000000..c4e2ff487d --- /dev/null +++ b/main/libplist/APKBUILD @@ -0,0 +1,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" |