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

Jan de Groot jgc at nymeria.archlinux.org
Tue Jan 21 10:10:50 UTC 2014


    Date: Tuesday, January 21, 2014 @ 11:10:50
  Author: jgc
Revision: 204498

upgpkg: dbus-python 1.2.0-2

Fix pycache by using autoreconf (FS#38592)

Modified:
  dbus-python/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-21 09:38:00 UTC (rev 204497)
+++ PKGBUILD	2014-01-21 10:10:50 UTC (rev 204498)
@@ -4,24 +4,28 @@
 pkgbase=dbus-python
 pkgname=('python-dbus' 'python2-dbus' 'python-dbus-common')
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python bindings for DBUS"
 arch=('i686' 'x86_64')
 license=('GPL' 'LGPL')
 url="http://www.freedesktop.org/wiki/Software/DBusBindings"
 makedepends=('docutils' 'dbus-glib' 'python' 'python2')
-source=(http://dbus.freedesktop.org/releases/${pkgbase}/${pkgbase}-${pkgver}.tar.gz)
-md5sums=('b09cd2d1a057cc432ce944de3fc06bf7')
+source=(http://dbus.freedesktop.org/releases/${pkgbase}/${pkgbase}-${pkgver}.tar.gz{,.asc})
+md5sums=('b09cd2d1a057cc432ce944de3fc06bf7'
+         'SKIP')
 
+prepare() {
+  mkdir build-python2 build-python3
+  cd $pkgbase-$pkgver
+  autoreconf -fi
+}
+
 build() {
-  cd "${srcdir}"
-  mkdir build-python2 build-python3
-  cd "${srcdir}/build-python2"
+  cd build-python2
   PYTHON=python2 ../${pkgbase}-${pkgver}/configure --prefix=/usr
   make
 
-
-  cd "${srcdir}/build-python3"
+  cd ../build-python3
   ../${pkgbase}-${pkgver}/configure --prefix=/usr
   make
 }
@@ -30,7 +34,7 @@
   pkgdesc="Common dbus-python files shared between python-dbus and python2-dbus"
   conflicts=('dbus-python<1.1.0')
 
-  cd "${srcdir}/build-python3"
+  cd build-python3
   make DESTDIR="${pkgdir}" install-data
   rm -rf "${pkgdir}"/usr/lib/python*
 }
@@ -40,7 +44,7 @@
   optdepends=('dbus-glib: glib mainloop support')
   pkgdesc="Python 3.3 bindings for DBUS"
 
-  cd "${srcdir}/build-python3"
+  cd build-python3
   make DESTDIR="${pkgdir}" install
 
   rm -rf "${pkgdir}/usr/share"
@@ -56,7 +60,7 @@
   conflicts=('dbus-python')
   provides=("dbus-python=$pkgver")
 
-  cd "${srcdir}/build-python2"
+  cd build-python2
   make DESTDIR="${pkgdir}" install
 
   rm -rf "${pkgdir}/usr/share"




More information about the arch-commits mailing list