1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
5 pkgname=(json-glib json-glib-docs)
8 pkgdesc="JSON library built on GLib"
9 url="https://wiki.gnome.org/Projects/JsonGlib"
13 makedepends=(gobject-introspection git meson gi-docgen docbook-xsl)
15 _commit=3cf2b53667a73376c852e08dcadd197a5f8325b9 # tags/1.6.6^0
16 source=("git+https://gitlab.gnome.org/GNOME/json-glib.git#commit=$_commit")
21 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
29 arch-meson json-glib build -D man=true
30 meson compile -C build
34 meson test -C build --print-errorlogs
38 depends+=(libg{lib,object,io}-2.0.so)
39 provides+=(libjson-glib-1.0.so)
41 meson install -C build --destdir "$pkgdir"
43 mkdir -p doc/usr/share
44 mv {"$pkgdir",doc}/usr/share/doc
46 rm -r "$pkgdir"/usr/{lib,share}/installed-tests
49 package_json-glib-docs() {
50 pkgdesc+=" (documentation)"