1 # Contributors: flamelab, crazyelf5
2 # Maintainer: crazyelf5
7 pkgdesc="Stylish top panel that holds indicators and spawns an application launcher"
9 url="https://launchpad.net/wingpanel"
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
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."
32 bzr branch $_bzrtrunk $_bzrmod -r $pkgver
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
41 [ -d build ] && rm -rf build
44 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
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"