blob: 15dc342a641233890b43ae2e69fadf50cd066afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $Id$
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
pkgbase=gtk3
pkgname=(gtk3 gtk-update-icon-cache)
pkgver=3.18.6
pkgrel=2
pkgdesc="GObject-based multi-platform GUI toolkit"
arch=(i686 x86_64)
url="http://www.gtk.org/"
depends=(atk cairo libcups libxcursor libxinerama libxrandr libxi libepoxy gdk-pixbuf2
libxcomposite libxdamage pango shared-mime-info colord at-spi2-atk wayland libxkbcommon
adwaita-icon-theme json-glib rest librsvg)
makedepends=(gobject-introspection libcanberra)
license=(LGPL)
source=(https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-$pkgver.tar.xz
0001-x11-Only-do-cursor-name-fallback-for-standard-names.patch
0002-wayland-Only-do-cursor-name-fallback-for-standard-na.patch
settings.ini)
sha256sums=('78cabf0fd5a662f8723f62d5ac633072c76c557c1d700454c9c3deaa37e441ef'
'0402c3b7801810beb0f24ad20e4fb2eb7519cf3984f39e093a6e2752a0f7d9de'
'94722b06284e76f628fc8933617ac19c14f6775a5250fe3c382defab63d7b10e'
'01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202')
prepare() {
cd gtk+-$pkgver
# Fix zoom in/out cursors in GTK3 builds of Firefox
# https://bugzilla.gnome.org/show_bug.cgi?id=760141
patch -Np1 -i ../0001-x11-Only-do-cursor-name-fallback-for-standard-names.patch
patch -Np1 -i ../0002-wayland-Only-do-cursor-name-fallback-for-standard-na.patch
}
build() {
cd "gtk+-$pkgver"
CXX=/bin/false ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-schemas-compile \
--enable-x11-backend \
--enable-broadway-backend \
--enable-wayland-backend
#https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package_gtk3() {
depends+=(gtk-update-icon-cache)
optdepends=('libcanberra: gtk3-widget-factory demo')
install=gtk3.install
cd "gtk+-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 ../settings.ini "$pkgdir/usr/share/gtk-3.0/settings.ini"
# split this out to use with gtk2 too
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
}
package_gtk-update-icon-cache() {
pkgdesc="GTK+ icon cache updater"
depends=(gdk-pixbuf2 hicolor-icon-theme)
install=gtk-update-icon-cache.install
cd gtk+-$pkgver/gtk
install -Dm755 gtk-update-icon-cache "$pkgdir/usr/bin/gtk-update-icon-cache"
}
# vim:set et sw=4:
|