1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(libpeas libpeas-docs)
7 pkgdesc="A GObject plugins library"
8 url="https://wiki.gnome.org/Projects/Libpeas"
11 depends=(gtk3 gobject-introspection-runtime)
12 makedepends=(python-gobject glade gobject-introspection git meson vala gi-docgen)
13 checkdepends=(xorg-server-xvfb)
14 optdepends=('python-gobject: Python loader')
16 _commit=41335bc31cb3e5ec75196e621bb244ca4d96f151 # tags/libpeas-1.32.0^0
17 source=("git+https://gitlab.gnome.org/GNOME/libpeas.git#commit=$_commit")
22 git describe --tags | sed 's/^libpeas-//;s/[^-]*-g/r&/;s/-/+/g'
30 arch-meson libpeas build -D vapi=true -D gtk_doc=true
31 meson compile -C build
35 xvfb-run -s '-nolisten local' \
36 meson test -C build --print-errorlogs
40 provides=(libpeas{,-gtk}-1.0.so)
42 meson install -C build --destdir "$pkgdir"
44 mkdir -p doc/usr/share
45 mv {"$pkgdir",doc}/usr/share/doc
48 package_libpeas-docs() {
49 pkgdesc+=" (documentation)"