blob: f9e2950f36413c258f0a5216a4d7ebcc11e8f1b0 (
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Nikita Ukhrenkov <thekit@disroot.org>
# Contributor: Bart Ribbers <bribbers@disroot.org>
_pkg="gtk"
_pkgname="${_pkg}2"
_variant="maemo"
pkgname="${_pkgname}-${_variant}"
pkgver=2.24.33
pkgrel=1
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
arch=(
x86_64
i686
pentium4
aarch64
armv7h
armv6l
)
url="https://www.${_pkg}.org/"
_ns="tallero"
_url="https://gitlab.gnome.org/${_ns}/${_pkg}"
depends=(
atk
cairo
desktop-file-utils
"${_pkg}-update-icon-cache"
libcups
librsvg
libxcursor
libxinerama
libxrandr
libxi
libxcomposite
libxdamage
pango
shared-mime-info
)
makedepends=(
# git
gobject-introspection
"${_pkg}-doc"
hicolor-icon-theme
)
optdepends=(
'gnome-themes-standard: Default widget theme'
'adwaita-icon-theme: Default icon theme'
"python: ${_pkg}-builder-convert"
)
provides=(
libgailutil.so
libg{d,t}k-x11-2.0.so
"${_pkgname}=${pkgver}"
)
conflicts=(
"${_pkgname}"
)
license=(LGPL)
install="${_pkgname}.install"
_commit="ba8b5e7650e26e247488a26c71e82152faf319c2"
source=(
# "${_pkgname}::git+${_url}.git#branch=${_variant}"
"${_url}/-/archive/${_commit}/${_pkg}-${_commit}.tar.gz"
"${_pkg}rc"
"${_pkg}-query-immodules-2.0.hook"
xid-collision-debug.patch
)
sha512sums=(
'SKIP'
'b124433dd4b20d1d62f073df87e253ca23b3b51625cce55f29a220a4369eda5108c0de07fdc686f570232322c3ff04f7758383f2be5aeace40f843907aa3696d'
'5e99c5558bf48dc251134869c6310bd9e4bce3775a93547f62028fe32b415c18079da89fe46c85d80b54c4810732acbd6b88ec9946962d02fafc46ed7f672cf2'
'c473ac89fab47cc79e912695aa7408c22c4bcd998e00f9b00d46374d4a961d41ffaa1f885bf2f9d9b68a401e16f64c617f0dfb058a98469dbe16beb37229b9bc'
)
prepare() {
cd "${_pkg}-${_commit}"
git apply -3 ../xid-collision-debug.patch
}
build() {
local _configure_opts=(
--build=$CBUILD
--host=$CHOST
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--with-xinput=yes
)
cd "${_pkg}-${_commit}"
./autogen.sh
./configure "${_configure_opts[@]}"
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${_pkg}-${_commit}"
make DESTDIR="${pkgdir}" install
install -Dt "${pkgdir}/usr/share/${_pkg}-2.0" \
-m644 "../${_pkg}rc"
install -Dt "${pkgdir}/usr/share/libalpm/hooks" \
-m644 "../${_pkg}-query-immodules-2.0.hook"
rm "${pkgdir}/usr/bin/${_pkg}-update-icon-cache"
libtool --finish "${pkgdir}/usr/lib"
}
# vim:set et sw=2:
|