summaryrefslogtreecommitdiffstats
path: root/extra/wicd/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/wicd/Pkgfile')
-rw-r--r--extra/wicd/Pkgfile11
1 files changed, 9 insertions, 2 deletions
diff --git a/extra/wicd/Pkgfile b/extra/wicd/Pkgfile
index 9d5c92b6e..a6d847a8d 100644
--- a/extra/wicd/Pkgfile
+++ b/extra/wicd/Pkgfile
@@ -7,12 +7,19 @@
name=wicd
version=1.7.0
-release=6
+release=7
source=(http://downloads.sourceforge.net/$name/wicd-$version.tar.gz \
- http://nutyx.meticul.eu/files/patchs/$name/{wicd_in_usr.patch,wicd-locale.patch,wicd.desktop} )
+ http://nutyx.meticul.eu/files/patchs/$name/{wicd_in_usr.patch,wicd-locale.patch,wicd.desktop}
+ wicd-1.7.0-python-2.7.patch
+ wicd-1.7.0-script-execution.patch)
build() {
cd $name-$version
+ patch -p0 < ../wicd-1.7.0-script-execution.patch
+ patch -p1 -i ../wicd-1.7.0-python-2.7.patch
+ find . -type f -exec sed -i 's@#!/usr.*python@#!/usr/bin/python2@' {} \;
+ export PYTHON=python2
+
python2 setup.py configure --no-install-init \
--resume=/usr/share/wicd/scripts/ \
--suspend=/usr/share/wicd/scripts --verbose