APP=gtkmm2
VERSION=2.24.5
BUILD=1sml
HOMEPAGE="http://www.gtkmm.org/"
DOWNLOAD="https://download.gnome.org/sources/gtkmm/2.24/gtkmm-2.24.5.tar.xz"
DESC="C++ bindings for GTK+ 2"
REQUIRES="gtk2 atkmm pangomm "

build() {
  mkandenterbuilddir
  rm -rf gtkmm-$VERSION

  tar xf $SRCDIR/gtkmm-$VERSION.tar.?z
  cd gtkmm-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  for i in docs tests demos ; 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="
5609d8aad7d8728eff28368aa016b7284b0440509dafb580c54a4afbf72acbe4c1ccc6633b54c9fc3a20fafcdddadf58b3b2a6da14da8150d120311bc1f1d405  gtkmm-2.24.5.tar.lz
"
