# Contributor: Rasmus Thomsen # Maintainer: pkgname=libpeas pkgver=1.36.0 pkgrel=4 pkgdesc="GObject-based plugin system" url="https://wiki.gnome.org/Projects/Libpeas" arch="all" license="LGPL-2.1-or-later" makedepends=" glib-dev gobject-introspection-dev gtk+3.0-dev meson py3-gobject3-dev python3-dev vala " checkdepends="dbus bash py3-gobject3 xvfb-run gobject-introspection" subpackages="$pkgname-dev $pkgname-python3:py3 $pkgname-lang" source="https://download.gnome.org/sources/libpeas/${pkgver%.*}/libpeas-$pkgver.tar.xz failing-test.patch " build() { abuild-meson \ -Db_lto=true \ -Dvapi=true \ -Ddemos=false \ . output meson compile -C output } check() { xvfb-run -a meson test --print-errorlogs -C output -t 10 } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } py3() { depends="py3-gobject3" amove usr/lib/libpeas-1.0/loaders/libpython3loader.* } sha512sums=" 254087089475a3c1415e0ba8efb17aac56b96b1eee7c8e12933e72cc551ee39e9e3eac2d3d602bf9d369dd9fc7d3f5141e7683dec11b40b6c7b961b8e6c70a11 libpeas-1.36.0.tar.xz 5f1ae155738f84f1ca9553f771d9e49ff93ca25fd630415b4b65b093e0002cfb21a450325b0a56b8f59634c6877f09e70aefd29383b60d471df65751aa5ba6a3 failing-test.patch "