[arch-commits] Commit in libplist/trunk (PKGBUILD)

Jan de Groot jgc at archlinux.org
Thu Jun 4 10:27:23 UTC 2015


    Date: Thursday, June 4, 2015 @ 12:27:22
  Author: jgc
Revision: 240333

upgpkg: libplist 1.12-2

Add python bindings (2.x and 3.x), fix build for python3 by using more recent macros from autoconf-archive (FS#39890)

Modified:
  libplist/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-04 09:45:09 UTC (rev 240332)
+++ PKGBUILD	2015-06-04 10:27:22 UTC (rev 240333)
@@ -5,24 +5,41 @@
 
 pkgname=libplist
 pkgver=1.12
-pkgrel=1
+pkgrel=2
 pkgdesc="A library to handle Apple Property List format whereas it's binary or XML"
 url="http://libimobiledevice.org/"
 arch=('i686' 'x86_64')
 license=('GPL2' 'LGPL2.1')
 depends=('glib2' 'libxml2')
-makedepends=('python2')
+makedepends=('python2' 'cython2' 'python' 'cython' 'autoconf-archive')
 options=('!makeflags')
 source=(http://www.libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2)
 md5sums=('8b04b0f09f2398022dcd4fba75012997')
 
+prepare() {
+  cd $pkgname-$pkgver
+  sed -e 's/AC_PYTHON_DEVEL/AX_PYTHON_DEVEL/' -i m4/cython_python.m4
+  autoreconf -fi
+}
+
 build() {
-  cd libplist-$pkgver
-  ./configure --prefix=/usr
+  mkdir build-py2
+  pushd build-py2
+  PYTHON=/usr/bin/python2 CYTHON=/usr/bin/cython2 ../$pkgname-$pkgver/configure --prefix=/usr
   make
+  popd
+
+  mkdir build-py3
+  pushd build-py3
+  PYTHON=/usr/bin/python CYTHON=/usr/bin/cython ../$pkgname-$pkgver/configure --prefix=/usr
+  make
+  popd
 }
 
 package() {
-  cd libplist-$pkgver
+  pushd build-py2
   make DESTDIR="$pkgdir" install
+  popd
+  pushd build-py3/cython
+  make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list