blob: 561a344499e9e849987f8688b810b0954bd25a0f (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Maintainer: Michael Healy <horsemanoffaith@gmail.com>
# Original Maintainer: György Balló <ballogy@freestart.hu>
# Contributor: Christopher Reimer <github@creimer.net>
# vercheck-pkgbuild: auto
# vercheck-ubuntu: name=gtk+2.0, repo=zesty
# vercheck-archlinux: name=gtk2, repo=extra, arch=x86_64
# vercheck-gnome: name=gtk+, majorver=2.24
pkgname=gtk2-ubuntu
_ubuntu_rel=1ubuntu1
_ubuntu_ver=2.24.31
pkgver=2.24.31
pkgrel=2
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
arch=(i686 x86_64)
url="http://www.gtk.org/"
license=(LGPL)
depends=(atk cairo desktop-file-utils gtk-update-icon-cache libcups librsvg libxcomposite
libxcursor libxdamage libxi libxinerama libxrandr pango shared-mime-info)
makedepends=(gobject-introspection gtk-doc python2)
optdepends=('adwaita-icon-theme: Default icon theme'
'gnome-themes-standard: Default widget theme')
provides=("gtk2=${pkgver}")
conflicts=(gtk2)
install=gtk2.install
source=("http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${pkgver}.tar.xz"
"https://launchpad.net/ubuntu/+archive/primary/+files/gtk+2.0_${_ubuntu_ver:-${pkgver}}-${_ubuntu_rel}.debian.tar.xz"
gtkrc
gtk-query-immodules-2.0.hook
xid-collision-debug.patch)
sha512sums=('75b846661308d94b5236e7e1c367deabf57753792ca87e92f9769822dd5ec90e00cd8d5574adcc12162e3702e1ae6dc152278a1d218f9bd9e4d1c8dc1dd520c1'
'2c081180df781c37cf9bdf55a7eb449a95a561bc7fa60fcc6ec0f611c5e2a3e9d5ac91d961dcc65083739f1d56c69f36f0ef44f0eac537fca97893c4bcec73b6'
'b124433dd4b20d1d62f073df87e253ca23b3b51625cce55f29a220a4369eda5108c0de07fdc686f570232322c3ff04f7758383f2be5aeace40f843907aa3696d'
'be7a807046f27e5796f6069dfd2c88f9b7508e3b9e209d97c1575e0d809b279aacacd0e1247f1f7643fa47eede2d987bf433cd17cea0524526ad31982ae8d90d'
'89e3223c86731a76b12d39245f1ec4cf8b4860ab1d11d74a10e5deb0db302f20b4bb5d9034da1d8aeb96369dbdeddcdd2f28943270dc501476c694562b960159')
prepare() {
cd "gtk+-${pkgver}"
patch -Np1 -i ../xid-collision-debug.patch
sed -i '1s/python$/&2/' gtk/gtk-builder-convert
local patches=(
004_gtk+-ximian-gtk2-filesel-navbutton-5.patch
012_ubuntu-set-grab-add.patch
042_treeview_single-focus.patch
060_ignore-random-icons.patch
061_use_pdf_as_default_printing_standard.patch
062_dnd_menubar.patch
063_treeview_almost_fixed.patch
071_no_offscreen_widgets_grabbing.patch
090_logging_file_saves.patch
092_default_to_xdg_document_dir.patch
093_gtk3_gtkimage_fallbacks_use.patch
096_git_gtkprintsettings.patch
097_statusicon_image_fallback.patch
099_printer_filename_fix.patch
100_overlay_scrollbar_loading.patch
print-dialog-show-options-of-remote-dnssd-printers.patch
gtk-shell-shows-menubar.patch
backport_search_printer_location.patch
menubar_toolbar_dragging.patch
)
for i in "${patches[@]}"; do
msg "Applying ${i}"
patch -p1 -i "../debian/patches/${i}"
done
}
build() {
cd "gtk+-${pkgver}"
autoreconf -vfi
CXX=/bin/false ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-xinput=yes \
--enable-gtk-doc \
--enable-test-print-backend
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "gtk+-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 ../gtkrc \
"${pkgdir}/usr/share/gtk-2.0/gtkrc"
install -Dm644 ../gtk-query-immodules-2.0.hook \
"${pkgdir}/usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook"
rm "${pkgdir}/usr/bin/gtk-update-icon-cache"
rm -r "${pkgdir}/usr/share/gtk-doc"
}
|