# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libwnck3
version=3.36.0
build=1sml
homepage="https://gitlab.gnome.org/GNOME/libwnck"
download="https://gitlab.gnome.org/GNOME/libwnck/-/archive/$version/libwnck-$version.tar.bz2"
desc="Window Navigator Construction Kit"
requires="startup-notification gobject-introspection gtk3"

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

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

build() {
  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Dgtk_doc=false

  ninja
  DESTDIR="$pkg" ninja install
  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
fe860dfe24e3920af3241772d895932fb734cdf11177d80218b6d481cd69c166b973f277268c898bec6418b3acf42b1b8c6f3541ef1a7cea24f5d68c571f17b0  libwnck-3.36.0.tar.lz
"
