pkgname=libdbusmenu-bzr
pkgbranch=0.2
pkgver=0.2.9
pkgrel=1
pkgdesc="A small little library that was created by pulling out some common code out of indicator-applet. (Canonical Ayatana Pr
oject)"
arch=('i686' 'x86_64')
url="https://launchpad.net/dbusmenu"
license=('GPL')
depends=('glib2' 'dbus-glib' 'libxml2' 'json-glib')
makedepends=('intltool' 'gtk-doc' 'gnome-common' 'bzr' 'vala')
provides=('libdbusmenu')
source=()
md5sums=()
_bzrbranch=lp:dbusmenu
_bzrmod=dbusmenu
build() {
cd ${srcdir}
msg "Connecting to the server...."
if [ ! -d ./${_bzrmod} ]; then
bzr co ${_bzrbranch} ${_bzrmod}
else
bzr up ${_bzrmod}
fi
msg "BZR checkout done or server timeout"
msg "Starting make..."
[ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
cp -r ./${_bzrmod} ./${_bzrmod}-build
cd ./${_bzrmod}-build
./autogen.sh --prefix=/usr --disable-static || return 1
make || return 1
make DESTDIR="$pkgdir" install || return 1
}