# Maintainer: PktSurf <smlinux@pktsurf.in>
app=pygobject3
version=3.38.0
build=1sml
homepage="https://wiki.gnome.org/Projects/PyGObject"
download="https://gitlab.gnome.org/GNOME/pygobject/-/archive/$version/pygobject-$version.tar.bz2"
desc="Python Bindings for GLib, GObject, GIO and GTK+"
requires="python3 gobject-introspection gtk3"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf PyGObject-$version

  tar xf $srcdir/PyGObject-$version.tar.?z*
  cd PyGObject-$version
  fixbuilddirpermissions
}

build() {
  mkdir smbuild && cd smbuild
  meson .. \
  --prefix=/

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
dc77c064da2cfb5e196a7993142594c41f11d0505e92eeaa6c56e611faec1ad5d290c390f511a2788b9ffc936f775aff63b3033895d9dd031b7a73381d6d9d4f  PyGObject-3.38.0.tar.lz
"
