# Maintainer: Natanael Copa pkgname=gtk+3.0 pkgver=3.6.0 pkgrel=2 pkgdesc="The GTK+ Toolkit (v3)" 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" # depend on gtk+2.0 for update-icon-cache depends="gtk+2.0" depends_dev=" atk-dev at-spi2-atk-dev cairo-dev fontconfig-dev gdk-pixbuf-dev glib-dev intltool libx11-dev libxext-dev libxi-dev pango-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxrandr-dev " makedepends="pkgconfig $depends_dev cups-dev expat-dev gettext-dev gnutls-dev gobject-introspection-dev libice-dev libiconv-dev jpeg-dev>=8 tiff-dev zlib-dev" source="http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz" _builddir="$srcdir"/gtk+-$pkgver build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ || return 1 # the configure script checks if isnan is a function. In uclibc # isnan is there, but as a macro # https://bugzilla.gnome.org/show_bug.cgi?id=676087 echo "#define HAVE_ISNAN 1" >> config.h echo "#define HAVE_ISINF 1" >> config.h make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 # use gtk+2.0's for now rm "$pkgdir"/usr/bin/gtk-update-icon-cache find "$pkgdir" -name *.la -delete } md5sums="6f7ef4679f7e3622894c3f57045a1188 gtk+-3.6.0.tar.xz"