# Maintainer: Jan Alexander Steffens (heftig) # Contributor: Ionut Biru pkgname=json-glib pkgver=1.4.4 pkgrel=1 pkgdesc="JSON library built on GLib" url="https://wiki.gnome.org/Projects/JsonGlib" arch=(x86_64) license=(GPL) depends=(glib2) makedepends=(gobject-introspection git gtk-doc meson) _commit=700a8bc414991d35ff3f79607547d4beedac8629 # tags/1.4.4^0 source=("git+https://gitlab.gnome.org/GNOME/json-glib.git#commit=$_commit") sha256sums=('SKIP') pkgver() { cd $pkgname git describe --tags | sed 's/-/+/g' } prepare() { cd $pkgname } build() { arch-meson $pkgname build -D docs=true -D man=true ninja -C build } check() { meson test -C build } package() { DESTDIR="$pkgdir" meson install -C build rm -r "$pkgdir"/usr/{lib,share}/installed-tests }