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

Jan de Groot jgc at archlinux.org
Fri Nov 10 22:41:58 UTC 2017


    Date: Friday, November 10, 2017 @ 22:41:57
  Author: jgc
Revision: 309404

upgpkg: libplist 2.0.0+11+gec9ba8b-1

Modified:
  libplist/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-10 22:34:21 UTC (rev 309403)
+++ PKGBUILD	2017-11-10 22:41:57 UTC (rev 309404)
@@ -4,7 +4,7 @@
 # Contributor: Gabriel Martinez < reitaka at gmail dot com >
 
 pkgname=libplist
-pkgver=2.0.0
+pkgver=2.0.0+11+gec9ba8b
 pkgrel=1
 pkgdesc="A library to handle Apple Property List format whereas it's binary or XML"
 url="http://libimobiledevice.org/"
@@ -11,21 +11,31 @@
 arch=('i686' 'x86_64')
 license=('GPL2' 'LGPL2.1')
 depends=('glib2')
-makedepends=('python2' 'cython2' 'python' 'cython' 'autoconf-archive')
+makedepends=('python2' 'cython2' 'python' 'cython' 'autoconf-archive' git python-setuptools python2-setuptools)
 options=('!makeflags')
-source=(http://www.libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2)
-sha256sums=('3a7e9694c2d9a85174ba1fa92417cfabaea7f6d19631e544948dc7e17e82f602')
+_commit=ec9ba8bff6a4469aa75f6d570ab5109c061c6a9e  # master
+source=("git+https://github.com/libimobiledevice/libplist#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+check() {
+  cd build-py2
+  make check
+}
+
 prepare() {
-  cd $pkgname-$pkgver
-  sed -e 's/AC_PYTHON_DEVEL/AX_PYTHON_DEVEL/' -i m4/cython_python.m4
-  autoreconf -fi
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
   mkdir build-py2
   pushd build-py2
-  PYTHON=/usr/bin/python2 CYTHON=/usr/bin/cython2 ../$pkgname-$pkgver/configure --prefix=/usr
+  PYTHON=/usr/bin/python2 CYTHON=/usr/bin/cython2 ../$pkgname/configure --prefix=/usr
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
   popd
@@ -32,7 +42,7 @@
 
   mkdir build-py3
   pushd build-py3
-  PYTHON=/usr/bin/python CYTHON=/usr/bin/cython ../$pkgname-$pkgver/configure --prefix=/usr
+  PYTHON=/usr/bin/python CYTHON=/usr/bin/cython ../$pkgname/configure --prefix=/usr
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
   popd
@@ -45,5 +55,5 @@
   pushd build-py3/cython
   make DESTDIR="$pkgdir" install
   popd
-  install -D -m644 $pkgname-$pkgver/cython/plist.pxd "${pkgdir}"/usr/include/plist/cython/plist.pxd
+  install -D -m644 $pkgname/cython/plist.pxd "${pkgdir}"/usr/include/plist/cython/plist.pxd
 }



More information about the arch-commits mailing list