# Description: A multi-platform toolkit for creating graphical user interfaces
# URL: https://www.gtk.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: at-spi2-core gdk-pixbuf hicolor-icon-theme pango xorg-libxcomposite xorg-libxcursor xorg-libxinerama xorg-libxrandr

name=gtk
version=2.24.33
release=1
source=(https://download.gnome.org/sources/gtk+/2.24/${name}+-$version.tar.xz
	gtk.immodules gtk-register.sh)

build() {
	cd gtk+-$version

	./configure --prefix=/usr
	make
	make DESTDIR=$PKG install

	install -m 0644 -D $SRC/gtk.immodules $PKG/usr/lib/gtk-2.0/2.10.0/immodules.cache
	install -m 0755 $SRC/gtk-register.sh $PKG/usr/bin/gtk-register

	rm -r \
		$PKG/usr/share/{locale,gtk-doc,gtk-2.0} \
		$PKG/usr/bin/{gtk-demo,gtk-update-icon-cache}
}
