APP=json-glib
VERSION=1.4.4
BUILD=1sml
HOMEPAGE='https://wiki.gnome.org/Projects/JsonGlib'
DESC="library for serialization and deserialization of JSON data"
REQUIRES="gcc-libs libffi pcre glib util-linux"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  mkdir smbuild && cd smbuild
  meson .. --prefix="/" \
     -Dnls=disabled

  ninja
  DESTDIR="$PKG" ninja install

  cp ../COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
11b67d5628ee7fbfecdf86623bb3249f9118284c6c41e315bf2054f317966e0f90bd307b40ee92b7c4ad2b46ec3c07678e343650aff34db6ff40bfb398da2965  json-glib-1.4.4.tar.lz
"
