updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / gtk3-overlay-scrollbar / PKGBUILD
blobd99394f9dc64763c3cce21fbfec11d1fbd66b86e
1 # Maintainer: Constantin Schomburg <me@xconstruct.net>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
4 pkgname=gtk3-overlay-scrollbar
5 pkgver=3.0.12
6 pkgrel=1
7 pkgdesc="The GTK+ Toolkit (v3) with overlay-scrollbar loading patch (Canonical Ayatana Project)"
8 arch=('i686' 'x86_64')
9 url="http://www.gtk.org/"
10 install=gtk3.install
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}")
14 conflicts=('gtk3')
15 options=('!libtool' '!docs')
16 backup=(etc/gtk-3.0/settings.ini)
17 license=('LGPL')
18 source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/3.0/gtk+-${pkgver}.tar.xz
19         settings.ini
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')
27 build() {
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 \
33         --sysconfdir=/etc \
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
39     make
42 package() {
43     cd "${srcdir}/gtk+-${pkgver}"
44     make DESTDIR="${pkgdir}" install
46     install -Dm644 "${srcdir}/settings.ini" "${pkgdir}/etc/gtk-3.0/settings.ini"