This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

updated compiz-deskmenu PKGBUILD

By: a guest on Nov 8th, 2010  |  syntax: Bash  |  size: 1.26 KB  |  views: 98  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Julien MISCHKOWITZ <wain@archlinux.fr>
  2. # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
  3.  
  4. pkgname=compiz-deskmenu
  5. pkgver=20101108
  6. pkgrel=1
  7. pkgdesc="Compiz Fusion deskmenu plugin"
  8. arch=('i686' 'x86_64')
  9. url="http://opencompositing.org"
  10. license=('GPL')
  11. depends=('dbus-glib' 'libwnck' 'python-lxml' 'pyxdg' )
  12. makedepends=('git' 'intltool' 'pkgconfig' 'gettext')
  13. install=$pkgname.install
  14. source=(fix_commands.patch)
  15. md5sums=('fe9596724639a46184874ccf5041a929')
  16.  
  17. _gitroot="git://git.compiz-fusion.org/users/crdlb/compiz-deskmenu"
  18. _gitname="compiz-deskmenu"
  19.  
  20. build() {
  21.   msg "Connecting to opencompositing.org GIT server...."
  22.  
  23.   if [[ -d $startdir/src/$_gitname ]] ; then
  24.     cd $_gitname
  25.     git pull origin || return 1
  26.     msg "The local files are updated."
  27.   else
  28.     git clone $_gitroot || return 1
  29.     cd $_gitname
  30.   fi
  31.  
  32.   msg "GIT checkout done"
  33.  
  34.   patch -Np1 -i $srcdir/fix_commands.patch
  35.   msg "Patching how it launches commands..."
  36.  
  37.   msg "Starting make..."
  38.  
  39.   sed -i -e 's/env python/env python2/g' compiz-deskmenu-editor
  40.  
  41.   make || return 1
  42.   make DESTDIR=$startdir/pkg install || return 1
  43.   install -m 755 $startdir/src/$_gitname/autoconfig-compiz.py $pkgdir/usr/bin/compiz-deskmenu-autoconfig || return 1
  44. }
clone this paste RAW Paste Data