updated on Sun Jan 22 04:03:10 UTC 2012
[aur-mirror.git] / gnomenu / PKGBUILD
blob6c5cd84b4a738975fdbdee95d9db1ca3813b8962
1 # Maintainer: chris_L <chrislcenter dash mamoru at yahoo.com dot mx>
2 # Contributor: Miguel Useche <migueluseche@skatox.com>
3 # Contributor: Pat <whaevr@archlinux.us>
4 pkgname=gnomenu
5 pkgver=2.9.1
6 pkgrel=1
7 pkgdesc="A consolidated menu for gnome2,awn,cairo-dock,docky,etc 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' 'pyxml' 'pygtk')
12 optdepends=('python-xlib' 'python-numpy' 'gettext')
13 makedepends=('python2-distribute')
14 source=("http://launchpad.net/gnomenu/trunk/${pkgver}/+download/gnomenu-${pkgver}.tar.gz")
15 md5sums=('f8b3cd0c342f5e01be32acfbc335b8be')
17 build() {
18         cd ${srcdir}/gnomenu
19         sed -i "s|python|python2|" Makefile
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