[arch-commits] Commit in pygobject/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 11:26:21 UTC 2021
Date: Wednesday, December 1, 2021 @ 11:26:21
Author: felixonmars
Revision: 429933
archrelease: copy trunk to staging-x86_64
Added:
pygobject/repos/staging-x86_64/
pygobject/repos/staging-x86_64/PKGBUILD
(from rev 429932, pygobject/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: pygobject/repos/staging-x86_64/PKGBUILD (from rev 429932, pygobject/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2021-12-01 11:26:21 UTC (rev 429933)
@@ -0,0 +1,47 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject)
+pkgver=3.42.0
+pkgrel=2
+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=d612f3cc675a1838bc5a18061df040ab6405fd31 # tags/3.42.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 '-nolisten local' meson test -C build --print-errorlogs
+}
+
+package_python-gobject() {
+ meson install -C build --destdir "$pkgdir"
+ 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