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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
# Maintainer:
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgbase=wxwidgets-dev-light
pkgname=(
'wxgtk2-dev-light'
'wxgtk3-dev-light'
'wxcommon-dev-light'
)
pkgver=3.2.2.1
_shortver=$(printf '%s' "$pkgver" | sed -E -e 's@^([0-9]+\.[0-9]+).*$@\1@')
pkgrel=1
pkgdesc="wxWidgets suite for Base, GTK2 and GTK3 toolkits . Development branch (GNOME/GStreamer free!)"
arch=('x86_64')
# http://wxwidgets.org
url="https://github.com/wxWidgets/wxWidgets"
license=('custom:wxWindows')
makedepends=(
'bash'
'curl'
'git'
'glu'
'gtk2'
'gtk3'
'libnotify'
'libsecret'
'libsm'
'libxtst'
)
source=(
"wxwidgets::git+$url#tag=v$pkgver"
"catch"::"git+https://github.com/wxWidgets/Catch"
"expat"::"git+https://github.com/wxWidgets/libexpat"
"jpeg"::"git+https://github.com/wxWidgets/libjpeg-turbo"
"nanosvg"::"git+https://github.com/wxWidgets/nanosvg"
"pcre"::"git+https://github.com/wxWidgets/pcre"
"png"::"git+https://github.com/wxWidgets/libpng"
"tiff"::"git+https://github.com/wxWidgets/libtiff"
"zlib"::"git+https://github.com/wxWidgets/zlib"
'wxGTK-collision.patch'
'wxgtk-abicheck.patch'
)
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'605df102a0f1610ab37c5294166644de0d17592d806147b0fb283cb5c3ce172e'
'81d596168253b05a36758235b054542f53e00e488a20da60f458126d46992ce3'
)
options=('debug')
prepare() {
mkdir -p build-{base,gtk{2,3}}
cd wxwidgets
_submodules=(
src/expat
src/jpeg
src/png
src/tiff
src/zlib
3rdparty/catch
3rdparty/nanosvg
3rdparty/pcre
)
for submodule in ${_submodules[@]} ; do
git submodule init ${submodule}
git submodule set-url ${submodule} "${srcdir}/${submodule##*/}"
git -c protocol.file.allow=always submodule update ${submodule}
done
for patch in "$srcdir"/*.patch ; do
if [ -f "$patch" ] ; then
printf 'Applying patch: %s\n' "${patch##*/}"
patch -Np1 -F100 -i "$patch"
fi
done
}
build() {
printf 'Build WxBASE\n'
cd "$srcdir/build-base"
../wxwidgets/configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-regex=builtin \
--disable-{precomp-headers,gui}
make
make -C ../wxwidgets/locale allmo
printf 'Build WxGTK2\n'
cd "$srcdir/build-gtk2"
../wxwidgets/configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-gtk=2 \
--with-lib{jpeg,png,tiff,xpm}=sys \
--with-regex=builtin \
--with-{opengl,sdl} \
--enable-graphics_ctx \
--without-gnomevfs \
--disable-{gtktest,sdltest,precomp-headers,mediactrl,webview}
make
make -C ../wxwidgets/locale allmo
printf 'Build WxGTK3\n'
cd "$srcdir/build-gtk3"
../wxwidgets/configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-gtk=3 \
--with-lib{jpeg,png,tiff,xpm}=sys \
--with-regex=builtin \
--with-{opengl,sdl} \
--enable-graphics_ctx \
--without-gnomevfs \
--disable-{gtktest,sdltest,precomp-headers,mediactrl,webview}
make
make -C ../wxwidgets/locale allmo
}
package_wxgtk2-dev-light() {
pkgdesc="wxWidgets GTK2 Toolkit. Development branch (GNOME/GStreamer free!)"
depends=(
'wxcommon-dev-light'
'gtk2'
'libsm'
'sdl2'
'libnotify'
'libxtst'
)
provides=('wxgtk2-dev')
conflicts=('wxgtk2-dev')
options=('!emptydirs')
make -C build-gtk2 DESTDIR="$pkgdir" install
make -C build-gtk2 DESTDIR="$pkgdir" uninstall_basedll uninstall_netdll uninstall_xmldll locale_uninstall
make -C build-gtk2/utils DESTDIR="$pkgdir" uninstall_wxrc
cp -P "$pkgdir/usr/bin/wx-config-$_shortver" "$pkgdir/usr/bin/wx-config-gtk2-$_shortver"
rm -fr "$pkgdir/usr/include"
rm -fr "$pkgdir/usr/share/bakefile"
install -Dm644 wxwidgets/docs/licence.txt "$pkgdir/usr/share/licenses/wxgtk2-dev-light/LICENSE"
}
package_wxgtk3-dev-light() {
pkgdesc="wxWidgets GTK3 Toolkit. Development branch (GNOME/GStreamer free!)"
depends=(
'wxcommon-dev-light'
'gtk3'
'libsm'
'sdl2'
'libnotify'
)
provides=('wxgtk3-dev')
conflicts=('wxgtk3-dev')
options=('!emptydirs')
make -C build-gtk3 DESTDIR="$pkgdir" install
make -C build-gtk3 DESTDIR="$pkgdir" uninstall_basedll uninstall_netdll uninstall_xmldll locale_uninstall
make -C build-gtk3/utils DESTDIR="$pkgdir" uninstall_wxrc
mv "$pkgdir/usr/bin/wx-config-$_shortver" "$pkgdir/usr/bin/wx-config-gtk3-$_shortver"
rm -fr "$pkgdir/usr/include"
rm -fr "$pkgdir/usr/share/bakefile"
install -Dm644 wxwidgets/docs/licence.txt "$pkgdir/usr/share/licenses/wxgtk3-dev-light/LICENSE"
}
package_wxcommon-dev-light() {
pkgdesc="wxWidgets common & base. Development branch (GNOME/GStreamer free!)"
depends=('expat'
'curl'
'libsecret'
)
provides=('wxbase-dev-light'
'wxbase-dev'
'wxgtk-common-dev'
)
conflicts=('wxbase-dev-light'
'wxbase-dev'
'wxgtk-common-dev'
)
options=('!emptydirs')
make -C build-gtk2 DESTDIR="$pkgdir" install
make -C build-gtk3 DESTDIR="$pkgdir" install
make -C build-base DESTDIR="$pkgdir" install
make -C build-gtk2 DESTDIR="$pkgdir" uninstall_advdll uninstall_auidll uninstall_coredll uninstall_gldll uninstall_htmldll uninstall_propgriddll uninstall_qadll uninstall_ribbondll uninstall_richtextdll uninstall_stcdll uninstall_xrcdll
make -C build-gtk3 DESTDIR="$pkgdir" uninstall_advdll uninstall_auidll uninstall_coredll uninstall_gldll uninstall_htmldll uninstall_propgriddll uninstall_qadll uninstall_ribbondll uninstall_richtextdll uninstall_stcdll uninstall_xrcdll
mv "$pkgdir/usr/bin/wx-config-$_shortver" "$pkgdir/usr/bin/wx-config-base-$_shortver"
rm -fr "$pkgdir/usr/bin/wxrc"
rm -fr "$pkgdir/usr/lib/wx/"{config,include}/gtk*
install -Dm644 wxwidgets/docs/licence.txt "$pkgdir/usr/share/licenses/wxcommon-dev-light/LICENSE"
}
|