1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
5 pkgname=(python-gobject)
8 pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
9 url="https://wiki.gnome.org/Projects/PyGObject"
12 depends=(gobject-introspection-runtime python)
13 makedepends=(python-cairo gobject-introspection git meson)
14 checkdepends=(python-pytest gtk3 xorg-server-xvfb)
15 optdepends=('cairo: Cairo bindings')
16 provides=("pygobject-devel=$pkgver")
17 conflicts=(pygobject-devel)
18 replaces=('pygobject-devel<=3.36.1-1')
19 _commit=d612f3cc675a1838bc5a18061df040ab6405fd31 # tags/3.42.0^0
20 source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit")
25 git describe --tags | sed 's/-/+/g'
33 arch-meson pygobject build
34 meson compile -C build
38 xvfb-run -s '-nolisten local' meson test -C build --print-errorlogs
41 package_python-gobject() {
42 meson install -C build --destdir "$pkgdir"
43 python -m compileall -d /usr/lib "$pkgdir/usr/lib"
44 python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"