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

Antonio Rojas arojas at archlinux.org
Sat Nov 9 13:17:43 UTC 2019


    Date: Saturday, November 9, 2019 @ 13:17:41
  Author: arojas
Revision: 367249

Update to 2.1.0, drop unused python2 bindings

Modified:
  libplist/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++++++++-------------------------
 1 file changed, 12 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-09 13:09:42 UTC (rev 367248)
+++ PKGBUILD	2019-11-09 13:17:41 UTC (rev 367249)
@@ -3,16 +3,16 @@
 # Contributor: Gabriel Martinez < reitaka at gmail dot com >
 
 pkgname=libplist
-pkgver=2.0.0+11+gec9ba8b
-pkgrel=4
+pkgver=2.1.0
+pkgrel=1
 pkgdesc="A library to handle Apple Property List format whereas it's binary or XML"
 url="https://libimobiledevice.org/"
 arch=('x86_64')
 license=('GPL2' 'LGPL2.1')
 depends=('glib2')
-makedepends=('python2' 'cython2' 'python' 'cython' 'autoconf-archive' git python-setuptools python2-setuptools)
+makedepends=('python' 'cython' 'autoconf-archive' 'git' 'python-setuptools')
 options=('!makeflags')
-_commit=ec9ba8bff6a4469aa75f6d570ab5109c061c6a9e  # master
+_commit=3df02d4d0e9008771e8622fdc10de8333b3f0d85  # tags/2.1.0^0
 source=("git+https://github.com/libimobiledevice/libplist#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -21,11 +21,6 @@
   git describe --tags | sed 's/-/+/g'
 }
 
-check() {
-  cd build-py2
-  make check
-}
-
 prepare() {
   cd $pkgname
   # Update ac_python_devel.m4 to newer ax_python_devel.m4
@@ -34,27 +29,19 @@
 }
 
 build() {
-  mkdir build-py2
-  pushd build-py2
-  PYTHON=/usr/bin/python2 CYTHON=/usr/bin/cython2 ../$pkgname/configure --prefix=/usr
+  cd $pkgname  
+  ./configure --prefix=/usr
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
-  popd
+}
 
-  mkdir build-py3
-  pushd build-py3
-  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
+check() {    
+  cd $pkgname 
+  make check  
 }
 
 package() {
-  pushd build-py2
+  cd $pkgname
   make DESTDIR="$pkgdir" install
-  popd
-  pushd build-py3/cython
-  make DESTDIR="$pkgdir" install
-  popd
-  install -D -m644 $pkgname/cython/plist.pxd "${pkgdir}"/usr/include/plist/cython/plist.pxd
+  install -D -m644 cython/plist.pxd "${pkgdir}"/usr/include/plist/cython/plist.pxd
 }



More information about the arch-commits mailing list