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

Felix Yan fyan at nymeria.archlinux.org
Mon Mar 17 15:41:03 UTC 2014


    Date: Monday, March 17, 2014 @ 16:41:02
  Author: fyan
Revision: 208075

upgpkg: pygobject 3.10.2-2

- python 3.4 rebuild
- added upstream patch to avoid types.py failure

Modified:
  pygobject/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-17 15:40:36 UTC (rev 208074)
+++ PKGBUILD	2014-03-17 15:41:02 UTC (rev 208075)
@@ -4,23 +4,28 @@
 pkgbase=pygobject
 pkgname=(python-gobject python2-gobject pygobject-devel)
 pkgver=3.10.2
-pkgrel=1
+pkgrel=2
 arch=(i686 x86_64)
 url="https://live.gnome.org/PyGObject"
 license=(LGPL)
-makedepends=(python python2 python-cairo python2-cairo gobject-introspection)
-source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
-sha256sums=('75608f2c4052f0277508fc79debef026d9e84cb9261de2b922387c093d32c326')
+makedepends=(python python2 python-cairo python2-cairo gobject-introspection gnome-common)
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz
+        "python3.4-gi-types.patch::https://git.gnome.org/browse/pygobject/patch/?id=2ff095ea0b0c05fbf6cc332eeadf26cfeb9e69f7")
+sha256sums=('75608f2c4052f0277508fc79debef026d9e84cb9261de2b922387c093d32c326'
+            '5a25f46e5d90f1c21430017e5a932cd066c4c847005eace63f98b062d731ec4d')
 
 prepare() {
   mkdir build-py2 build-py3 devel
   cd ${pkgbase}-${pkgver}
   sed -i '/Werror=format/d' configure # gcc 4.8
+
+  # Fix installation on Python 3.4, reference: https://git.gnome.org/browse/pygobject/commit/?id=2ff095ea0b0c05fbf6cc332eeadf26cfeb9e69f7
+  patch -p1 -i "$srcdir/python3.4-gi-types.patch"
 }
 
 build() {
   cd build-py2
-  ../${pkgbase}-${pkgver}/configure --prefix=/usr --with-python=/usr/bin/python2
+  ../${pkgbase}-${pkgver}/autogen.sh --prefix=/usr --with-python=/usr/bin/python2
   make
 
   cd ../build-py3




More information about the arch-commits mailing list