summaryrefslogtreecommitdiffstats
path: root/pygobject/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'pygobject/Pkgfile')
-rw-r--r--pygobject/Pkgfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/pygobject/Pkgfile b/pygobject/Pkgfile
index a60d531..2bd9a0a 100644
--- a/pygobject/Pkgfile
+++ b/pygobject/Pkgfile
@@ -7,7 +7,7 @@
name=pygobject
version=2.28.6
-release=2
+release=3
source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
@@ -17,6 +17,10 @@ build() {
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/gtk-doc
+
+ # Conflit avec pygobject3
rm -rf $PKG/usr/share/pygobject/xsl
+ rm -rf $PKG/usr/lib/python2.7/site-packages/gtk-2.0/dsextras.{py,pyc,pyo}
+
find $PKG/usr/share/pygobject -name '*.py' | xargs sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|"
}