# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libwnck3
version=3.18.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() {
  ./configure \
    --prefix=""

  for i in po ; do
    printf 'all:\n\ttrue\ninstall:\n\ttrue\nclean:\n\ttrue\n' > "$i"/Makefile
  done

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
adc9d31b1620c10c79eea153b3652f7e61f92ee94f631df4fb1c36c985d3639fb0c3ee6ee852d684f33f31a98654fb02c129f4fe8bbd946bb0dfaf3430ccc090  libwnck-3.18.0.tar.lz
"
