# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gobject-introspection
version=1.76.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="
d5f0d2467f679a098d51f770aeb607a800969e3144de9ab61de0d40955776d46c7545ea60d45eeeb54404c4ab5bec5238471c97405e5233cf2142e60bec2d381  gobject-introspection-1.76.1.tar.lz
"