2 # Maintainer: Ionut Biru <ibiru@archlinux.org>
7 pkgdesc="GTK 3 with patch to reenable scrolling through GtkNotebooks using the mousewheel; toggle GtkLightSwitch with mousewheel"
9 url="http://www.gtk.org/"
11 depends=('atk' 'cairo' 'gtk-update-icon-cache' 'libcups' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'pango' 'shared-mime-info' 'colord')
12 makedepends=('gobject-introspection')
13 options=('!libtool' '!docs')
14 backup=(etc/gtk-3.0/settings.ini)
17 provides=('gtk3=3.2.1')
18 source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/3.2/gtk+-${pkgver}.tar.xz
22 sha256sums=('f1989f183700cd5f46681cfabc2253e2f526b19b56e4b631dcee2594dddb0ef3'
23 'c214d3dcdcadda3d642112287524ab3e526ad592b70895c9f3e3733c23701621'
24 'e93a3c06974d9ef82a6f77dc3da8c2c1d143e941de12e3a757a5746ac45dfc9e'
25 '84b4e74b1d98bef69b9feb369aabed585a7dde99d05178c30e8e534f66d0d089')
28 cd "${srcdir}/gtk+-${pkgver}"
29 patch gtk/gtknotebook.c < ../../scroller.patch
30 patch gtk/gtkswitch.c < ../../switch.patch
32 CXX=/bin/false ./configure --prefix=/usr \
34 --localstatedir=/var \
35 --enable-gtk2-dependency \
36 --disable-schemas-compile
37 #https://bugzilla.gnome.org/show_bug.cgi?id=655517
38 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
43 cd "${srcdir}/gtk+-${pkgver}"
44 make DESTDIR="${pkgdir}" install
46 install -Dm644 "${srcdir}/settings.ini" "${pkgdir}/etc/gtk-3.0/settings.ini"