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

Jan Steffens heftig at archlinux.org
Sat Apr 20 14:41:23 UTC 2019


    Date: Saturday, April 20, 2019 @ 14:41:23
  Author: heftig
Revision: 350932

3.32.1-1

Modified:
  pygobject/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-20 13:32:50 UTC (rev 350931)
+++ PKGBUILD	2019-04-20 14:41:23 UTC (rev 350932)
@@ -3,7 +3,7 @@
 
 pkgbase=pygobject
 pkgname=(python-gobject python2-gobject pygobject-devel)
-pkgver=3.32.0
+pkgver=3.32.1
 pkgrel=1
 pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
 url="https://wiki.gnome.org/Projects/PyGObject"
@@ -11,8 +11,9 @@
 license=(LGPL)
 depends=(gobject-introspection-runtime)
 makedepends=(python{,2}-cairo gobject-introspection git meson)
+checkdepends=(python{,2}-pytest gtk3 xorg-server-xvfb)
 optdepends=('cairo: Cairo bindings')
-_commit=0f1d14f5ac95b14a6b13dbcc0ebc937c7e1f6413  # tags/3.32.0^0
+_commit=ff4dd4ec890528eecd8662f308b9b1b0585ab0fc  # tags/3.32.1^0
 source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -25,11 +26,15 @@
   cd $pkgbase
 }
 
-_build() (
+_build() {
   arch-meson $pkgbase build-$1 -D python=/usr/bin/$1
   ninja -C build-$1
-)
+}
 
+_check() {
+  xvfb-run meson test -C build-$1 --print-errorlogs
+}
+
 _package() {
   DESTDIR="$pkgdir" meson install -C build-$1
   $1 -m compileall -d /usr/lib "$pkgdir/usr/lib"
@@ -41,6 +46,11 @@
   _build python2
 }
 
+check() {
+  _check python
+  _check python2
+}
+
 package_python-gobject() {
   depends=("pygobject-devel=$pkgver" python)
 


More information about the arch-commits mailing list