updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-awesome-applet / PKGBUILD
blob93c88235775191a04029d4465a83d02e90605322
1 # Maintainer: Leandro Lovisolo <cafesolo@gmail.com>
2 pkgname=gnome-awesome-applet
3 pkgver=0.1.0
4 pkgrel=1
5 pkgdesc="GNOME applet to interact with the Awesome window manager"
6 url="http://upsilon.cc/~zack/hacking/software/gnome-awesome-applet/"
7 license=(GPL)
8 depends=(python2 awesome gnome-panel)
9 arch=(any)
10 source=(http://upsilon.cc/~zack/hacking/software/$pkgname/$pkgname-$pkgver.tar.gz)
11 md5sums=(58df905d26d133875cc6e9c093e86171)
13 build() {
14   cd "$srcdir/$pkgname-$pkgver"
15   
16   # Configure package
17   export PYTHON=/usr/bin/python2 
18   export PYTHON_BIN=$PYTHON
19   ./configure --prefix=/usr
20   
21   # Force Python 2
22   echo -e "#\x21/usr/bin/python2" > gnome-awesome-applet.new
23   tail -n +2 gnome-awesome-applet >> gnome-awesome-applet.new
24   rm gnome-awesome-applet
25   mv gnome-awesome-applet.new gnome-awesome-applet
26   chmod ugo+x gnome-awesome-applet
27   
28   # Install
29   python2 setup.py install --root=$startdir/pkg