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

Jan Steffens heftig at archlinux.org
Sat Sep 24 00:33:50 UTC 2016


    Date: Saturday, September 24, 2016 @ 00:33:49
  Author: heftig
Revision: 276892

3.22.0-1

Modified:
  pygobject/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-24 00:21:46 UTC (rev 276891)
+++ PKGBUILD	2016-09-24 00:33:49 UTC (rev 276892)
@@ -3,7 +3,7 @@
 
 pkgbase=pygobject
 pkgname=(python-gobject python2-gobject pygobject-devel)
-pkgver=3.20.1
+pkgver=3.22.0
 pkgrel=1
 pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
 url="https://wiki.gnome.org/Projects/PyGObject"
@@ -10,18 +10,26 @@
 arch=(i686 x86_64)
 license=(LGPL)
 depends=(gobject-introspection-runtime)
-makedepends=(python{,2}-cairo gobject-introspection)
+makedepends=(python{,2}-cairo gobject-introspection git gnome-common)
 optdepends=('cairo: Cairo bindings')
-source=("https://download.gnome.org/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz")
-sha256sums=('3d261005d6fed6a92ac4c25f283792552f7dad865d1b7e0c03c2b84c04dbd745')
+_commit=fb1b8fa8a67f2c7ea7ad4b53076496a8f2b4afdb
+source=("git://git.gnome.org/pygobject#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
 prepare() {
   mkdir build-py{2,3} devel
+  cd $pkgbase
+  NOCONFIGURE=1 ./autogen.sh
 }
 
 _build() (
   cd build-py$1
-  ../$pkgbase-$pkgver/configure --prefix=/usr --with-python=/usr/bin/python$1
+  ../$pkgbase/configure --prefix=/usr --with-python=/usr/bin/python$1
   sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 )



More information about the arch-commits mailing list