1 # Maintainer: György Balló <ballogy@freestart.hu>
5 pkgdesc="Removes the headache of applications matching into a simple DBus daemon and c wrapper library"
7 url="https://launchpad.net/bamf"
9 depends=('dbus-glib' 'libwnck3' 'libgtop')
10 makedepends=('libwnck')
11 optdepends=('gtk2: GTK+ 2 library')
13 source=(http://launchpad.net/$pkgname/0.2/0.2.204/+download/$pkgname-$pkgver.tar.gz)
14 md5sums=('4271cd5979483f7e3a9bffc42fed6383')
17 cd "$srcdir/$pkgname-$pkgver"
19 # Disable building tests
20 sed -i '/tests/ d' Makefile.in
22 [[ -d build-gtk3 ]] || mkdir build-gtk3
24 ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
29 [[ -d build-gtk2 ]] || mkdir build-gtk2
31 ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
32 --disable-static --with-gtk=2
38 cd "$srcdir/$pkgname-$pkgver/build-gtk3"
39 make DESTDIR="$pkgdir/" install
41 cd "$srcdir/$pkgbase-$pkgver/build-gtk2"
42 make -C lib/libbamf DESTDIR="$pkgdir" install