1 # Maintainer: Alessio Sergi <asergi at archlinux dot us>
3 pkgname=libdesktop-agnostic-bzr
4 _pkgname=libdesktop-agnostic
7 pkgdesc="A desktop-agnostic library for GLib-based projects"
9 url="https://launchpad.net/libdesktop-agnostic"
10 license=('GPL2' 'LGPL2.1')
11 depends=('pygtk' 'python2-gobject2')
12 makedepends=('bzr' 'gconf' 'gobject-introspection' 'intltool' 'vala-012')
13 optdepends=('gconf: gconf configuration backend')
16 backup=(etc/xdg/$_pkgname/desktop-agnostic.ini)
19 md5sums=('69bf989b9204fe886c958b279822696c')
21 _bzrtrunk="https://code.launchpad.net/~lda-team/libdesktop-agnostic/trunk"
27 msg "Connecting to Bazaar server...."
29 if [[ -d "$_bzrmod" ]]; then
30 cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver"
31 msg "The local files are updated."
33 bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
36 msg "Bazaar checkout done or server timeout"
37 msg "Starting build..."
39 rm -rf "$srcdir/$_bzrmod-build"
40 cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
41 cd "$srcdir/$_bzrmod-build"
43 # fix to turn on introspection
44 patch -Np1 -i "$srcdir"/gir.patch
47 sed -i '1s|^#!.*python$|&2|' waf
49 export PYTHON="/usr/bin/python2"
50 export VALAC="/opt/vala-0.12/bin/valac"
52 ./waf configure --prefix=/usr --sysconfdir=/etc \
53 --config-backends=gconf,keyfile \
55 --desktop-entry-backends=gio,glib
60 cd "$srcdir/$_bzrmod-build"
62 ./waf install --destdir="$pkgdir/" --sysconfdir="$pkgdir"/etc
65 # vim:set ts=2 sw=2 et: