diff options
Diffstat (limited to 'pygobject/Pkgfile')
-rw-r--r-- | pygobject/Pkgfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pygobject/Pkgfile b/pygobject/Pkgfile new file mode 100644 index 000000000..825ff725f --- /dev/null +++ b/pygobject/Pkgfile @@ -0,0 +1,22 @@ +# Description: Connecteur Python pour GObject +# URL: http://www.pygtk.org/ +# Maintainer: NutyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: py2cairo +# Run on: py2cairo + +name=pygobject +version=2.28.6 +release=1 +source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz) + +build() { + cd $name-$version + PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ + --disable-introspection + 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|" +} |