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"
19 _commit=89f25f9789b8323c6c06ac086d1fba2836113f16 # tags/3.44.0^0
20 source=("git+https://gitlab.gnome.org/GNOME/jsonrpc-glib.git#commit=$_commit")
25 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
33 arch-meson $pkgname build -D enable_gtk_doc=true
34 meson compile -C build
38 meson test -C build --print-errorlogs
41 package_jsonrpc-glib() {
42 provides=(libjsonrpc-glib-1.0.so)
44 meson install -C build --destdir "$pkgdir"
46 mkdir -p doc/usr/share
47 mv {"$pkgdir",doc}/usr/share/doc
50 package_jsonrpc-glib-docs() {
51 pkgdesc+=" (documentation)"
57 # vim:set sw=2 sts=-1 et: