Advertisement
Guest User

PKGBUILD

a guest
Oct 24th, 2010
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.01 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement