updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome15-panel-applet / PKGBUILD
blob38d1e6ada63d61f5f3d29f074ced154ca4783375
1 # Maintainer: Nuno Araujo <nuno.araujo at russo79.com>
2 pkgname=gnome15-panel-applet
3 pkgver=0.0.2
4 pkgrel=1
5 pkgdesc="Panel applet for gnome15"
6 arch=(any)
7 url="http://www.gnome15.org/"
8 license=('GPL')
9 depends=(gnome15 python-gnomeapplet)
10 source=(http://www.gnome15.org/downloads/Gnome15/Desktop/$pkgname-$pkgver.tar.gz
11         python2.patch
12        )
13 md5sums=('626eb957a0f6722a899d37297ec24f91'
14          '5a86cbe7ae05776246f26b77b18aa327')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
19   # python2 fix
20   for file in $(find . -type f -name '*' -print); do
21     sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
22     sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
23   done
25   patch -p1 -i ../python2.patch
27   export PYTHON_VERSION=2
28   export PYTHON=python2
29   ./configure --prefix=/usr
30   make
33 package() {
34   cd "$srcdir/$pkgname-$pkgver"
36   make DESTDIR="$pkgdir/" install
39 # vim:set ts=2 sw=2 et: