# Description: serialization and deserialization of JSON objects
# URL: https://wiki.gnome.org/action/show/Projects/JsonGlib
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gobject-introspection

name=json-glib
version=1.8.0
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)

build() {
  sed "/^subdir('po')/d" -i $name-$version/meson.build

  meson setup build $name-$version \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D gtk_doc=disabled \
    -D tests=false \
    -D nls=disabled

  meson compile -C build -j ${JOBS:-1}
  DESTDIR=$PKG meson install -C build
}
