# Maintainer: PktSurf <smlinux@pktsurf.in>
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"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. --prefix="/" \
     -Dintrospection=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

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