1 # $Id: PKGBUILD 128602 2011-06-24 13:59:34Z ibiru $
2 # Maintainer: Gary van der Merwe <garyvdm@gmail.com>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=python-dbus-bzr
8 pkgdesc="Python 3 bindings for DBUS (port by Barry Warsaw)"
10 license=('GPL' 'LGPL')
11 url="http://www.freedesktop.org/wiki/Software/DBusBindings"
12 depends=('dbus-core' 'python')
13 makedepends=('bzr' 'pkg-config' 'docutils' 'dbus-glib')
14 optdepends=('dbus-glib: glib mainloop support')
15 provides=('python-dbus')
18 _bzrtrunk=http://bazaar.launchpad.net/~garyvdm/python-dbus/py3k-works/
24 msg "Connecting to Bazaar server...."
26 if [[ -d "$_bzrmod" ]]; then
27 cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver"
28 msg "The local files are updated."
30 bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
33 msg "Bazaar checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_bzrmod-build"
37 cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
38 cd "$srcdir/$_bzrmod-build"
41 ./autogen.sh --prefix=/usr --docdir=/usr/share/doc/python-dbus
46 cd "$srcdir/$_bzrmod-build"
47 make DESTDIR="$pkgdir/" install
48 rm "$pkgdir/usr/lib/pkgconfig/" -r
49 rm "$pkgdir/usr/include/" -r