app=libwnck2
version=2.29.6
build=1sml
homepage="https://www.gnome.org/"
download="https://download-fallback.gnome.org/sources/libwnck/2.29/libwnck-2.29.6.tar.bz2"
desc="Window Navigator Construction Kit"
requires="intltool libxt startup-notification gobject-introspection gtk2 "

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

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

  ./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="
b6054fd07e949345d4c06591e1a41d3e426f7ed9e95180e320b1f4dd513a93cd2d07951f8f16eb6d3b62a8d7e8f7604e8ab837a5456165d3f9ac1eb41a5896c0  libwnck-2.29.6.tar.bz2
"
