# Description : Library that provides a GTK2 implementation of the DBusMenu protocol
# URL: https: https://launchpad.net/dbusmenu
# Packager: pierre at nuty x dot org, fanch at nutyx dot org, tnut at nutyx dot org
# Depends on: python gobject-introspection gtk2 gtk3 libdbusmenu-glib vala gnome-doc-utils atk libepoxy json-glib libdbusmenu-glib

name=libdbusmenu-gtk2
_name=libdbusmenu
release=1
version=12.10.2

source=(http://launchpad.net/dbusmenu/${version%.?}/${version}/+download/${_name}-${version}.tar.gz)

build() {
  cd libdbusmenu-$version
  export HAVE_VALGRIND_TRUE='#'
  export HAVE_VALGRIND_FALSE=''
  CXX="g++ -std=c++98"  ./configure --prefix=/usr                   \
                                    --sysconfdir=/etc               \
                                    --localstatedir=/var            \
                                    --disable-{dumper,static,tests} \
                                    --with-gtk=2

  make
  make -C libdbusmenu-glib DESTDIR=$PKG install
  make -C libdbusmenu-gtk DESTDIR=$PKG install
  make -C libdbusmenu-glib DESTDIR=$PKG uninstall
}
