# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libwnck2
version=2.29.6
build=1sml
homepage="https://www.gnome.org/"
download="https://download-fallback.gnome.org/sources/libwnck/2.29/libwnck-$version.tar.bz2"
desc="Window Navigator Construction Kit"
requires="intltool libxt startup-notification gobject-introspection gtk2"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static \
    $builddist

  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="
fa8615855648bb79bedd0518a4675dce525ba6470014f124ef0ecabbca092db82b148df54247d57b2f151c2d5f26db3c90c742fd14c58532016fc6eb5c602259  libwnck-2.29.6.tar.lz
"
