archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / lib32-wxgtk3 / repos / multilib-x86_64 / PKGBUILD
blob5fceb236c805e36483d184140765f4454d5ecae6
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=lib32-wxgtk3
5 pkgver=3.0.5.1
6 pkgrel=2
7 pkgdesc='GTK+ implementation of wxWidgets API for GUI'
8 arch=(x86_64)
9 url=https://wxwidgets.org
10 license=(custom:wxWindows)
11 depends=(
12   lib32-expat
13   lib32-gtk3
14   lib32-libjpeg
15   lib32-libpng
16   lib32-libsm
17   lib32-libtiff
18   lib32-zlib
19   wxgtk3
21 makedepends=(
22   git
23   lib32-glu
25 conflicts=(lib32-wxgtk)
26 provides=(lib32-wxgtk)
27 replaces=(lib32-wxgtk)
28 _tag=db9378c1d32e84cf7ca4453932df259471d67dc9
29 source=(
30   git+https://github.com/wxWidgets/wxWidgets.git?signed#tag=${_tag}
31   make-abicheck-non-fatal.patch
33 validpgpkeys=(31FAF2D074EC22A10AA4C6DA06EA41DE4F6C1E86) # Vadim Zeitlin <vadim@tt-solutions.com>
34 sha256sums=(
35   SKIP
36   d4c2d070a06eb63f0a018c8cf687589e5ffdec601225b4d16a268ffe390fb58b
39 prepare() {
40   cd wxWidgets
42   patch -Np1 -i ../make-abicheck-non-fatal.patch
44   ./autogen.sh
47 build() {
48   cd wxWidgets
50   export CC='gcc -m32'
51   export CXX='g++ -m32'
52   export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
53   export CFLAGS="-I/usr/include/libtiff32 $CFLAGS"
54   export CXXFLAGS="-I/usr/include/libtiff32 $CXXFLAGS"
56   ./configure \
57     --prefix=/usr \
58     --libdir=/usr/lib32 \
59     --enable-graphics_ctx \
60     --enable-unicode \
61     --disable-mediactrl \
62     --disable-precomp-headers \
63     --disable-webview \
64     --with-gtk=3 \
65     --with-lib{jpeg,png,tiff}=sys \
66     --with-opengl \
67     --with-regex=builtin \
68     --without-libnotify
69   make
70   make -C locale allmo
73 package() {
74   make DESTDIR="${pkgdir}" -C wxWidgets install
75   rm -rf "${pkgdir}"/usr/{bin/{wx-config,wxrc},include,share}
76   mv "${pkgdir}"/usr/bin/wxrc{,32}-3.0
77   ln -s /usr/bin/wxrc32-3.0 "${pkgdir}"/usr/bin/wxrc32
78   ln -s /usr/lib32/wx/config/gtk3-unicode-3.0 "${pkgdir}"/usr/bin/wx-config32
80   install -dm 755 "${pkgdir}"/usr/share/licenses
81   ln -s wxgtk3 "${pkgdir}"/usr/share/licenses/lib32-wxgtk3
84 # vim: ts=2 sw=2 et: