summaryrefslogtreecommitdiffstats
path: root/extra/pygobject/Pkgfile
blob: be2826ab067594f7ad957548f7f77db7a25010d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Description: Connecteur Python pour GObject
# URL: http://www.pygtk.org/
# Maintainer: NutyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: python2, glib, gobject-introspection

name=pygobject
version=2.26.0
release=1
source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.bz2)

build() {
	cd $name-$version
	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|"
}