# Contributor: Rasmus Thomsen # Maintainer: Natanael Copa pkgname=libplist pkgver=2.0.0 pkgrel=2 pkgdesc="A library to handle Apple Property List format whereas it's binary or XML" url="http://libimobiledevice.org/" arch="all" license="GPL-2.0-or-later LGPL-2.1-or-later" makedepends="py2-setuptools swig python2-dev glib-dev cython" subpackages="$pkgname-static $pkgname-dev py-$pkgname:py $pkgname-util $pkgname++:cxx" source="http://www.libimobiledevice.org/downloads/libplist-$pkgver.tar.bz2" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man make } check() { # https://github.com/libimobiledevice/libplist/issues/118 case "$CARCH" in armv7) return 0;; esac make check -j1 # https://github.com/libimobiledevice/libimobiledevice/issues/777 } package() { make DESTDIR="$pkgdir" install } 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/ } sha512sums="81508bf6773483528816725c3b5b868563b84fd7810999404072e5ea9efa7fc9f11ef997f32208e4421aa26b15edd0c65f87c67c1472e8c4e356f1e9fe7740ee libplist-2.0.0.tar.bz2"