[arch-commits] Commit in pygobject/repos (2 files)

Jan Steffens heftig at archlinux.org
Sat Sep 26 21:09:26 UTC 2020


    Date: Saturday, September 26, 2020 @ 21:09:26
  Author: heftig
Revision: 396631

archrelease: copy trunk to gnome-unstable-x86_64

Added:
  pygobject/repos/gnome-unstable-x86_64/
  pygobject/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 396630, pygobject/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: pygobject/repos/gnome-unstable-x86_64/PKGBUILD (from rev 396630, pygobject/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2020-09-26 21:09:26 UTC (rev 396631)
@@ -0,0 +1,48 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject)
+pkgver=3.38.0
+pkgrel=1
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject"
+arch=(x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime python)
+makedepends=(python-cairo gobject-introspection git meson)
+checkdepends=(python-pytest gtk3 xorg-server-xvfb)
+optdepends=('cairo: Cairo bindings')
+provides=("pygobject-devel=$pkgver")
+conflicts=(pygobject-devel)
+replaces=('pygobject-devel<=3.36.1-1')
+_commit=63825d8eb0acbaf516fcd5064a891f31534dc4e5  # tags/3.38.0^0
+source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd pygobject
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd pygobject
+}
+
+build() {
+  arch-meson pygobject build
+  meson compile -C build
+}
+
+check() {
+  xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' \
+    meson test -C build --print-errorlogs
+}
+
+package_python-gobject() {
+  DESTDIR="$pkgdir" meson install -C build
+  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
+  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list