APP=gobject-introspection
VERSION=1.64.1
BUILD=1sml
HOMEPAGE="https://wiki.gnome.org/Projects/GObjectIntrospection"
DOWNLOAD="https://gitlab.gnome.org/GNOME/gobject-introspection/-/archive/1.64.1/gobject-introspection-1.64.1.tar.bz2"
DESC="Introspection system for GObject-based libraries"
REQUIRES="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="/" \
    --localstatedir=/var \
    --buildtype=release

  ninja
  DESTDIR="$PKG" ninja install

  cp ../COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
aa5d4544a6a5587a099b1b962ecf425924dad59c9cf406137dc65bc957e4a66fcd1bf9c9673757f8edf068820d600a81dfbca8430ab166f791b7e614c384c947  gobject-introspection-1.64.1.tar.lz
"
