1 # Maintainer: Constantin Schomburg <me@xconstruct.net>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 pkgname=gtk3-overlay-scrollbar
7 pkgdesc="The GTK+ Toolkit (v3) with overlay-scrollbar loading patch (Canonical Ayatana Project)"
9 url="http://www.gtk.org/"
11 depends=('atk' 'cairo' 'gtk-update-icon-cache' 'gnutls' 'heimdal' 'libcups' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'pango' 'shared-mime-info')
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.0/gtk+-${pkgver}.tar.xz
20 gtk+-3.0-right-filter-window-for-XI2-events.patch
21 gtk+-3.0-use-overlay-form-module.patch)
22 sha256sums=('219fdea120897981840e909fac40d4d433fe061a37b12b9402e215c819ebeae9'
23 'c214d3dcdcadda3d642112287524ab3e526ad592b70895c9f3e3733c23701621'
24 '43fe524696d62d55d0ea9e8e4665dcfe57f0c1835e2487305c6808c72ec95ddb'
25 'f9d035833b945547b517e8f84f80ece13c4cd6013ac980e7d19d57dd8eab369c')
28 cd "${srcdir}/gtk+-${pkgver}"
29 patch -Np1 -i "${srcdir}/gtk+-3.0-right-filter-window-for-XI2-events.patch"
30 patch -Np1 -i "${srcdir}/gtk+-3.0-use-overlay-form-module.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"