# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gobject-introspection
version=1.72.1
build=1sml
homepage="https://wiki.gnome.org/Projects/GObjectIntrospection"
download="https://gitlab.gnome.org/GNOME/gobject-introspection/-/archive/$version/gobject-introspection-$version.tar.bz2"
desc="Introspection system for GObject-based libraries"
requires="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="/" \
    --buildtype=release

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
245025444c03b0f698041c9d34a380087bec1e12da28d16bd5b7b616b15e54077a13aa11bcbcba85f95f3252d4ab5bae62cb94c1c44e79061ce236e3703c5f27  gobject-introspection-1.72.1.tar.lz
"
