updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / plank-bzr / PKGBUILD
blob234bf39e286782d40ff72d415421b00929a6e369
1 # Maintainer: Dan Serban
2 # Contributor: D. Can Celasun <dcelasun[at]gmail[dot]com>
4 pkgname=plank-bzr
5 pkgver=latest
6 pkgrel=1
7 pkgdesc="A stupidly simple dock"
8 arch=(i686 x86_64)
9 url=https://launchpad.net/plank
10 license=(GPL)
11 depends=(bamf-bin glib2 gtk2 libgee libunique libwnck libx11)
12 makedepends=(bamf-bin bzr dbus-glib gnome-common intltool vala)
13 install=plank-bzr.install
15 _bzrtrunk=lp:plank
16 _bzrmod=plank
18 build()
20   msg "Connecting to Launchpad..."
21   if [ -d ${_bzrmod} ]; then
22     bzr up ${_bzrmod}
23     msg2 "The local files have been updated."
24   else
25     bzr co ${_bzrtrunk} ${_bzrmod}
26   fi
27   msg2 "BZR checkout done or server timeout"
28   [ -d ${_bzrmod}-build ] && rm -r ${_bzrmod}-build
29   cp -a ${_bzrmod} ${_bzrmod}-build
30   cd ${_bzrmod}-build
31   ./autogen.sh
32   make
33   make DESTDIR="${pkgdir}" install
34   cd "${pkgdir}"/usr
35   mv local/* .
36   rm -r local