makedepends=(glib gobject-introspection python-setuptools python-docutils gtk-doc gi-docgen)

packager="Great-OS Team"
maintainer="Great-OS Team"

description="Library providing serialization and deserialization support for the JavaScript Object Notation"
url="http://live.gnome.org/JsonGlib"

name=json-glib
version=1.10.8
release=2
#_commit=9c2219796d845bee40e1f9bbb383541ff5d95b97

source=(https://gitlab.gnome.org/GNOME/$name/-/archive/${version}/json-glib-${version}.tar.gz)

#prepare() {
#  mv $name-${_commit} $name-$version
#}

build() {
  mkdir build && cd build

  meson --prefix=/usr \
        --libdir=/usr/lib \
        -Dtests=false \
        -Ddocumentation=enabled \
        -Dgtk_doc=enabled \
        -Dman=true \
        ../$name-$version
  ninja
  DESTDIR=$PKG ninja install
}
