# Maintainer: Natanael Copa pkgname=gtk+3.0 pkgver=3.8.2 pkgrel=0 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=" at-spi2-atk-dev atk-dev cairo-dev fontconfig-dev gdk-pixbuf-dev glib-dev intltool libx11-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxrandr-dev pango-dev " makedepends="pkgconfig $depends_dev cups-dev expat-dev gettext-dev gnutls-dev gobject-introspection-dev libice-dev libiconv-dev 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="8e878e18fc385f2b813419dc7b40a968 gtk+-3.8.2.tar.xz" sha256sums="1ca80c9c15a1df95d74cefb8c2afe4682ba272a4b489106f04877be2a7aff297 gtk+-3.8.2.tar.xz" sha512sums="20958c192fe881281f6885e2d7cecc4e2700fc01ef8006304f1fb8befe8f6628cbdb06c0d801f109e5805d58f327ca9a07d5e2c7f938116c99db8080d0c2f83e gtk+-3.8.2.tar.xz"