# Maintainer: Natanael Copa pkgname=gtk+3.0 pkgver=3.10.1 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 \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-xkb \ --enable-xinerama \ --enable-xrandr \ --enable-xfixes \ --enable-xcomposite \ --enable-xdamage \ --enable-x11-backend \ || 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 # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || return 1 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="027d1cb23ac91ce678194ad0cdc14a3f gtk+-3.10.1.tar.xz" sha256sums="c12e6897fb1ec8d8f1a6de6cd0ac1372fee6fd63ee3a5a63813dc5f3473e6ab8 gtk+-3.10.1.tar.xz" sha512sums="a0b0a050c0f61f8704b6c0a9e9fcc412cf912be16d0c8937bc739d9a89e65bf7395460073d4e8f0358fda63c19eed44a4bdeeedc04741b0df72c2fd19fe89485 gtk+-3.10.1.tar.xz"