summaryrefslogtreecommitdiffstats
path: root/extra/gtk/Pkgfile
blob: 6edd66c833e154e939f9a038a0dd6759d26dd26b (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
31
# Description: Librairie multiplatforme permettant des interfaces graphiques
# URL: http://www.gtk.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: cairo, pango, atk, libtiff, glib, libjpeg, shared-mime-info, libcups, kerberos, gdk-pixbuf
# Run on:

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

build() {
	cd gtk+-$version
	CXX=/bin/false ./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
                --sysconfdir=/etc \
		--with-xinput=yes 
	make
	make DESTDIR=$PKG install

	sed -i "s#env python#env python2#" $PKG/usr/bin/gtk-builder-convert

        mkdir -p $PKG/etc/gtk-2.0
	echo 'gtk-fallback-icon-theme = "gnome"' > $PKG/etc/gtk-2.0/gtkrc
        rm -r $PKG/usr/share/gtk-doc
	rm -r $PKG/usr/share/gtk-2.0/demo
}