summaryrefslogtreecommitdiffstats
path: root/gobject-introspection/Pkgfile
blob: 3e4c4d8269f3e6a7ec6f26cfd05e19051cd8aefc (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
27
28
29
30
# Description: Est utilisé pour décrire l'API et les collecte d'une façon uniforme en format lisible par la machine
# URL: http://live.gnome.org/GObjectIntrospection
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: cairo
# Run on: cairo

name=gobject-introspection
version=1.29.16
release=1
source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz
	glib-2.0.c)

build() {
	cd $name-$version

	# From Ubuntu:
	# Roll back to gir/glib-2.0 as of before upstream commit 6d30588c1.
	# Later commits have a GVariant which current pygobject does not
	# deal with. This is fixed in the invoke-rewrite branch of
	# pygobject, so until this lands we need the older annotations.
	cp ../glib-2.0.c gir/

	PYTHON=/usr/bin/python2	./configure --prefix=/usr

	make
	make DESTDIR=$PKG install
	rm -rf $PKG/usr/share/gtk-doc
	sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" $PKG/usr/lib/gobject-introspection/giscanner/*.py
}