summaryrefslogtreecommitdiffstats
path: root/pygobject/Pkgfile
blob: 2bd9a0ae4682c1aaeb9a4275f9ec4a320f636892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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=3
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

	# 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|"
}