updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / bamf-daemon / PKGBUILD
blob23ee94fb92f05c5d4f47ede6ab787dd0131784be
1 pkgname=bamf-daemon
2 pkgver=0.2.92
3 pkgrel=3
4 pkgdesc="Removes the headache of applications matching into a simple DBus daemon and c wrapper library"
5 arch=('i686' 'x86_64')
6 url="https://launchpad.net/bamf"
7 license=('GPL')
8 depends=('glib2' 'dbus-glib' 'libwnck3' 'libgtop')
9 options=(!libtool)
10 source=(http://archive.ubuntu.com/ubuntu/pool/main/b/bamf/bamf_$pkgver.orig.tar.gz)
11 md5sums=('f2d557fa009c1a73c6dca8a84150bc92')
12 conflicts=('bamf')
13 groups=('unity2d-bzr')
15 build() {
16   cd "$srcdir/bamf-$pkgver"
17   export CFLAGS="$CFLAGS -Wno-error=unused-but-set-variable"
18   export CXXFLAGS="${CFLAGS}"
19   export LDFLAGS="-Wl,-z,defs -Wl,--as-needed"
20   rm -rf "$srcdir/bamf-$pkgver/bin"
21   ./configure --prefix=/usr --enable-introspection=no
22   make
24 package() {
25   cd "$srcdir/bamf-$pkgver"
26   mkdir bin
27   make DESTDIR="$srcdir/bamf-$pkgver/bin" install
28   install -D -m755 $srcdir/bamf-$pkgver/bin/usr/libexec/bamfdaemon ${pkgdir}/usr/libexec/bamfdaemon
29   install -D -m644 $srcdir/bamf-$pkgver/bin/usr/lib/gio/modules/libgiobamf.so ${pkgdir}/usr/lib/gio/modules/libgiobamf.so
30   install -D -m644 $srcdir/bamf-$pkgver/bin/usr/share/dbus-1/services/org.ayatana.bamf.service ${pkgdir}/usr/share/dbus-1/services/org.ayatana.bamf.service