1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
7 pkgdesc="GTK+ is a multi-platform toolkit (v3) with Ubuntu's modifications"
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 provides=("gtk3=$pkgver")
15 options=('!libtool' '!docs')
16 backup=(etc/gtk-3.0/settings.ini)
18 source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/3.2/gtk+-$pkgver.tar.xz
21 016_no_offscreen_widgets_grabbing.patch
22 017_no_offscreen_device_grabbing.patch
23 043_ubuntu_menu_proxy.patch
24 062_ubuntu-set-grab-add.patch
25 075_expose_gdkwidget_for_gtkrange.patch
26 100_overlay_scrollbar_loading.patch)
27 sha256sums=('e2cf20f2510ebbc7be122a1a33dd1f472a7d06aaf16b4f2a63eb048cd9141d3d'
28 'c214d3dcdcadda3d642112287524ab3e526ad592b70895c9f3e3733c23701621'
29 'a0b5859cd5c2ac78b5273d6be61d46ed79f1c38719b2424742254902fd6d3194'
30 'c4a43b254b9719ac026fa6a92366bdc1d32e42fa79461ff8aaa206933b9f9c7e'
31 'cb8f4eb9d10c6d8645d23812aaa7d64c14560476f19f8c779d10a546748de684'
32 '3c40814a3ba51dbbd169b5fc8f4a3c47aff6c5b97433a1f6c13fa66d465947d9'
33 '5a89bd63afb2d97b98eb3b7acb5a568c388aedd94af38a1106233ce033982354'
34 '9ee240b355502d6ba449983f794205e6e5401c8acca2a3ce513df7f0502dc988'
35 'd6ba760175a01bb2339bc6878d7fbded3a4ddb5ade8c69ad7a1704dff5993895')
38 cd "$srcdir/gtk+-$pkgver"
39 patch -Np1 -i "$srcdir/empty_grid.patch"
41 # Don't let offscreen widget do grabbing (fix for ido)
42 patch -Np1 -i "$srcdir/016_no_offscreen_widgets_grabbing.patch"
44 # Do not allow widgets in an offscreen hierarchy to take grabs (fix for ido)
45 patch -Np1 -i "$srcdir/017_no_offscreen_device_grabbing.patch"
47 # Add Ubuntu menuproxy module (required for appmenu-gtk)
48 patch -Np1 -i "$srcdir/043_ubuntu_menu_proxy.patch"
50 # Add ubuntu-set-grab-add signal (required for ido)
51 patch -Np1 -i "$srcdir/062_ubuntu-set-grab-add.patch"
53 # Add gtk_range_get_event_window to get the event_window for a GtkRange (fix for ido)
54 patch -Np1 -i "$srcdir/075_expose_gdkwidget_for_gtkrange.patch"
56 # Add support for the ayatana overlay scrollbars (required for overlay-scrollbar)
57 patch -Np1 -i "$srcdir/100_overlay_scrollbar_loading.patch"
60 CXX=/bin/false ./configure --prefix=/usr \
62 --localstatedir=/var \
63 --enable-gtk2-dependency \
64 --disable-schemas-compile
65 #https://bugzilla.gnome.org/show_bug.cgi?id=655517
66 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
71 cd "$srcdir/gtk+-$pkgver"
72 make DESTDIR="$pkgdir" install
74 install -Dm644 "$srcdir/settings.ini" "$pkgdir/etc/gtk-3.0/settings.ini"