# Contributor: Rasmus Thomsen # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=py3-gobject3 pkgver=3.48.1 pkgrel=1 pkgdesc="Python bindings for the GObject library" url="https://wiki.gnome.org/Projects/PyGObject/" arch="all" license="LGPL-2.1-or-later" makedepends=" glib-dev gobject-introspection-dev libffi-dev meson py3-cairo-dev python3-dev " checkdepends="py3-pytest gtk+3.0-dev xvfb-run ibus font-dejavu" depends="python3" subpackages="$pkgname-dev:_dev" options="!check" # Need ibus which is in community/ source="https://download.gnome.org/sources/pygobject/${pkgver%.*}/pygobject-$pkgver.tar.xz fix-regression.patch" builddir="$srcdir"/pygobject-$pkgver replaces="py-gobject3" # Backwards compatibility provides="py-gobject3=$pkgver-r$pkgrel" # Backwards compatibility build() { abuild-meson -Db_lto=true . output meson compile -C output } check() { PYGI_TEST_VERBOSE="1" xvfb-run -a meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } _dev() { replaces="py-gobject3-dev" # Backwards compatibility provides="py-gobject3-dev=$pkgver-r$pkgrel" # Backwards compatibility default_dev } sha512sums=" 6293bdeaf2936228a5bb652af594cb31806e7f20afde9e5c41ea482bbdf32f0f30e037dafb7afb0fda347a47be68d2076794fc57a34f93d9da7e1cf57b448baa pygobject-3.48.1.tar.xz c70cb920bdf7b79bbd45e3d545648256cd41d0cef7bb6797eed269a6b18c4742674931f5075314d16aa52c651480d45d83ff115ac09d71a8d82b0ea6cfecc365 fix-regression.patch "