updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bamf / PKGBUILD
blobecbdcf9fc9c141b94d8ebe1199ff527c234684e7
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgname=bamf
3 pkgver=0.2.106
4 pkgrel=1
5 pkgdesc="Removes the headache of applications matching into a simple DBus daemon and c wrapper library"
6 arch=('i686' 'x86_64')
7 url="https://launchpad.net/bamf"
8 license=('GPL')
9 depends=('dbus-glib' 'libwnck3' 'libgtop')
10 makedepends=('libwnck')
11 optdepends=('gtk2: GTK+ 2 library')
12 options=(!libtool)
13 source=(http://launchpad.net/$pkgname/0.2/0.2.106/+download/$pkgname-$pkgver.tar.gz)
14 md5sums=('5bb1d1f9cf5657b2f62b25b138edfcb6')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
19   # Disable building tests
20   sed -i '/tests/ d' Makefile.in
22   [[ -d build-gtk3 ]] || mkdir build-gtk3
23   pushd build-gtk3
24   ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
25               --disable-static
26   make
27   popd
29   [[ -d build-gtk2 ]] || mkdir build-gtk2
30   pushd build-gtk2
31   ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
32               --disable-static --with-gtk=2
33   make -C lib/libbamf
34   popd
37 package() {
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