# Maintainer: Natanael Copa pkgname=gtk+2.0 pkgver=2.24.5 pkgrel=6 pkgdesc="The GTK+ Toolkit (v2)" url="http://www.gtk.org/" install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall" triggers="$pkgname.trigger=/usr/share/icons/*" arch="all" license="LGPL" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" depends="shared-mime-info" replaces="gtk+" replaces_dev="gtk+-dev" replaces_doc="gtk+-doc" depends_dev=" atk-dev cairo-dev gdk-pixbuf-dev glib-dev intltool libxdamage-dev pango-dev " makedepends="pkgconfig $depends_dev cups-dev expat-dev gettext-dev gnutls-dev gobject-introspection-dev libice-dev libiconv-dev jpeg-dev>=8 libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxfixes-dev libxrandr-dev libxi-dev tiff-dev zlib-dev" source="http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.bz2" _builddir="$srcdir"/gtk+-$pkgver build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-xinput=yes \ --without-libjasper \ --with-included-loaders=png || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name '*.la' -delete } dev() { mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/ mv "$pkgdir"/usr/share/gtk-2.0 "$subpkgdir"/usr/share/ || return 1 default_dev replaces="gtk+2.0" mv "$pkgdir"/usr/bin/gtk-builder-convert \ "$pkgdir"/usr/bin/gtk-demo \ "$subpkgdir"/usr/bin || return 1 } md5sums="aebeb2e9efc2e541dc9631546aed7900 gtk+-2.24.5.tar.bz2"