updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / wingpanel-bzr / PKGBUILD
blobe27e45fc6b455a8a537eb2059539e5a4cbda8954
1 # Contributors: flamelab, crazyelf5
2 # Maintainer: crazyelf5
4 pkgname=wingpanel-bzr
5 pkgver=29
6 pkgrel=1
7 pkgdesc="Stylish top panel that holds indicators and spawns an application launcher"
8 arch=('i686' 'x86_64')
9 url="https://launchpad.net/wingpanel"
10 license=('GPL3')
11 depends=('glib2' 'glibc' 'libgee' 'gtk3' 'libx11' 'granite-bzr' 'libindicator' 'pango' 'dconf' 'gettext')
12 optdepends=('indicator-application: take menus from applications and place them in the panel'
13             'indicator-datetime: Date and clock indicator'
14             'indicator-me: An user indicator'
15             'indicator-messages: Messages indiator'
16             'indicator-session: Indicator to switch user, change session'
17             'indicator-sound: Sound indicator')
18 makedepends=('bzr' 'cmake' 'vala')
19 install=$pkgname.install
21 _bzrtrunk=lp:wingpanel
22 _bzrmod=wingpanel-gtk3
24 build() {
25   msg "Connecting to Bazaar server...."
27   if [ -d $_bzrmod ]; then
28     cd $_bzrmod && bzr pull $_bzrtrunk -r $pkgver
29     msg "The local files are updated."
30     cd "$srcdir"
31   else
32     bzr branch $_bzrtrunk $_bzrmod -r $pkgver
33   fi
35   msg "BZR checkout done or server timeout"
36   msg "Starting make..."
38   [ -d $_bzrmod-build ] && rm -rf $_bzrmod-build
39   cp -r $_bzrmod $_bzrmod-build
40   cd $_bzrmod-build
41   [ -d build ] && rm -rf build
42   mkdir build
43   cd build
44   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
45   make
48 package() {
49   cd "$srcdir/$_bzrmod-build/build"
50   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install
51   install -dm755 "$pkgdir/usr/lib/indicators3/6"