# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=libpeas pkgver=1.24.1 pkgrel=3 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 intltool gtk+3.0-dev py3-gobject3-dev python3-dev meson vala glade-dev" checkdepends="py3-gobject3 xvfb-run" subpackages="$pkgname-dev $pkgname-python3:py3 $pkgname-lang" source="https://download.gnome.org/sources/libpeas/${pkgver%.*}/libpeas-$pkgver.tar.xz" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=debugoptimized \ -Dvapi=true \ -Ddemos=false \ . output ninja -C output } check() { xvfb-run meson test -C output -t 10 } package() { DESTDIR="$pkgdir" ninja -C output install } py3() { depends="py3-gobject3" mkdir -p "$subpkgdir"/usr/lib/libpeas-1.0/loaders mv "$pkgdir"/usr/lib/libpeas-1.0/loaders/libpython3loader.* "$subpkgdir"/usr/lib/libpeas-1.0/loaders/ } dev() { default_dev mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/glade/catalogs "$subpkgdir"/usr/share/ } sha512sums="9e2f2f3e7208baa7e72f6b963ad2bca7bf2789ffb2656151bd913be10d45f3e0d40379d69513d2ecf597cc6d211d157c273cc841dfd445829d0cb57d24275e1b libpeas-1.24.1.tar.xz"