1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(jsonrpc-glib jsonrpc-glib-docs)
7 pkgdesc="A JSON-RPC library for GLib"
8 url="https://gitlab.gnome.org/GNOME/jsonrpc-glib"
12 makedepends=(git meson vala gobject-introspection gi-docgen)
14 _commit=6f6f1e76ecdd7ae63ac043b3094ffbda209041cf # tags/3.42.0^0
15 source=("git+https://gitlab.gnome.org/GNOME/jsonrpc-glib.git#commit=$_commit")
20 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
28 arch-meson $pkgname build -D enable_gtk_doc=true
29 meson compile -C build
33 meson test -C build --print-errorlogs
36 package_jsonrpc-glib() {
37 provides=(libjsonrpc-glib-1.0.so)
39 meson install -C build --destdir "$pkgdir"
41 mkdir -p doc/usr/share
42 mv {"$pkgdir",doc}/usr/share/doc
45 package_jsonrpc-glib-docs() {
46 pkgdesc+=" (documentation)"