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

PKGBUILD

By: a guest on Oct 24th, 2010  |  syntax: Bash  |  size: 1.01 KB  |  views: 115  |  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: Miguel Useche <migueluseche@skatox.com>
  2. # Contributor: Pat <whaevr@archlinux.us>
  3. pkgname=gnomenu
  4. trunk=2.9
  5. pkgver=2.9
  6. pkgrel=1
  7. pkgdesc="A consolidated menu for gnome that brings eye candy to the world of the Gnome menu's."
  8. arch=(any)
  9. url="https://launchpad.net/gnomenu"
  10. license=('GPL3')
  11. depends=('python2' 'pyxdg' 'pycairo' 'gnome-python' 'deskbar-applet' 'pyxml' 'pygtk')
  12. optdepends=('python-xlib' 'python-numpy' 'gettext')
  13. makedepends=('setuptools')
  14. source=("http://launchpad.net/gnomenu/trunk/${trunk}/+download/${pkgname}-${pkgver}.tar.gz")
  15. md5sums=('9810e4bcf03a1a0b1a34344b335fbef8')
  16.  
  17. build() {
  18.         cd ${srcdir}/gnomenu
  19.         sed -i "s|python|python2|" Makefile
  20. }
  21.  
  22. package() {
  23.         export PYTHON=/usr/bin/python2
  24.         cd ${srcdir}/gnomenu
  25.         make DESTDIR=${pkgdir} install || return 1
  26.        
  27.         cd $pkgdir
  28.         sed -i -e "s|#!/usr/bin/python$|#!/usr/bin/python2|" \
  29.            -e "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" $(find ./ -name '*.py')
  30.         sed -i "s|python\ -u|python2\ -u |g" usr/bin/GnoMenu.py
  31. }
clone this paste RAW Paste Data