Advertisement
Guest User

wingpanel-bzr

a guest
Dec 5th, 2012
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. # Contributors: flamelab, crazyelf5
  2. # Maintainer: crazyelf5
  3.  
  4. pkgname=wingpanel-bzr
  5. pkgver=114
  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. groups=('pantheon-base')
  12. depends=('glib2' 'glibc' 'libgee' 'gtk3' 'hicolor-icon-theme' 'libx11' 'granite-bzr' 'libindicator3' 'pango' 'dconf' 'gettext')
  13. optdepends=('indicator-application: take menus from applications and place them in the panel'
  14. 'indicator-datetime: Date and clock 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-016')
  19. install=$pkgname.install
  20.  
  21. _bzrtrunk=lp:wingpanel
  22. _bzrmod=wingpanel-gtk3
  23.  
  24. build() {
  25. msg "Connecting to Bazaar server...."
  26.  
  27. if [ -d $_bzrmod ]; then
  28. cd $_bzrmod && bzr pull $_bzrtrunk -r $pkgver && cd ..
  29. msg "The local files are updated."
  30. else
  31. bzr branch $_bzrtrunk $_bzrmod -r $pkgver
  32. fi
  33.  
  34. msg "BZR checkout done or server timeout"
  35. msg "Starting make..."
  36.  
  37. [ -d $_bzrmod-build ] && rm -rf $_bzrmod-build
  38. cp -r $_bzrmod $_bzrmod-build
  39. cd $_bzrmod-build
  40. [ -d build ] && rm -rf build
  41. mkdir build
  42. cd build
  43. cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
  44. -DVALA_EXECUTABLE="$(type -p valac-0.16)"
  45. make
  46. }
  47.  
  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"
  52. install -dm755 "$pkgdir/usr/lib/indicators3/7"
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement