updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / bamf / PKGBUILD
blobd32ffa56b999d44dd683f8bf45f2548eca198a1b
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgname=bamf
3 pkgver=0.2.104
4 pkgrel=2
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.204/+download/$pkgname-$pkgver.tar.gz)
14 md5sums=('4271cd5979483f7e3a9bffc42fed6383')
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