diff options
Diffstat (limited to 'extra/pygobject/Pkgfile')
-rw-r--r-- | extra/pygobject/Pkgfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extra/pygobject/Pkgfile b/extra/pygobject/Pkgfile index 6d24fa2eb..be2826ab0 100644 --- a/extra/pygobject/Pkgfile +++ b/extra/pygobject/Pkgfile @@ -2,18 +2,20 @@ # URL: http://www.pygtk.org/ # Maintainer: NutyX core team # Packager: thierryn1 at hispeed dot ch -# Depends on: python, glib, gobject-introspection +# Depends on: python2, glib, gobject-introspection name=pygobject -version=2.20.0 +version=2.26.0 release=1 source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.bz2) build() { cd $name-$version - ./configure --prefix=/usr + PYTHON=python2 ./configure --prefix=/usr make make DESTDIR=$PKG install rm -rf $PKG/usr/share/gtk-doc + find $PKG/usr/share/pygobject -name '*.py' | \ + xargs sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" } |