upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-wxgtk2 / trunk / PKGBUILD
blobe8f9dbd780a1bdf630200d1d52b9fb34e8653cea
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=lib32-wxgtk2
5 pkgver=3.0.5.1
6 pkgrel=1
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-gtk2
13   lib32-libsm
14   wxgtk2
16 makedepends=(
17   git
18   lib32-glu
20 conflicts=(lib32-wxgtk)
21 provides=(lib32-wxgtk)
22 replaces=(lib32-wxgtk)
23 _tag=db9378c1d32e84cf7ca4453932df259471d67dc9
24 source=(
25   git+https://github.com/wxWidgets/wxWidgets.git?signed#tag=${_tag}
26   make-abicheck-non-fatal.patch
28 validpgpkeys=(31FAF2D074EC22A10AA4C6DA06EA41DE4F6C1E86) # Vadim Zeitlin <vadim@tt-solutions.com>
29 sha256sums=(
30   SKIP
31   d4c2d070a06eb63f0a018c8cf687589e5ffdec601225b4d16a268ffe390fb58b
34 prepare() {
35   cd wxWidgets
37   patch -Np1 -i ../make-abicheck-non-fatal.patch
39   ./autogen.sh
42 build() {
43   cd wxWidgets
45   export CC='gcc -m32'
46   export CXX='g++ -m32'
47   export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
48   export CFLAGS="-I/usr/include/libtiff32 $CFLAGS"
49   export CXXFLAGS="-I/usr/include/libtiff32 $CXXFLAGS"
51   ./configure \
52     --prefix=/usr \
53     --libdir=/usr/lib32 \
54     --enable-graphics_ctx \
55     --enable-unicode \
56     --disable-mediactrl \
57     --disable-precomp-headers \
58     --disable-webview \
59     --with-gtk=2 \
60     --with-lib{jpeg,png,tiff,xpm}=sys \
61     --with-opengl \
62     --with-regex=builtin \
63     --without-libnotify
64   make
65   make -C locale allmo
68 package() {
69   make DESTDIR="${pkgdir}" -C wxWidgets install
70   rm -rf "${pkgdir}"/usr/{bin/{wx-config,wxrc},include,share}
71   mv "${pkgdir}"/usr/bin/wxrc{,32}-3.0
72   ln -s /usr/bin/wxrc32-3.0 "${pkgdir}"/usr/bin/wxrc32
73   ln -s /usr/lib32/wx/config/gtk2-unicode-3.0 "${pkgdir}"/usr/bin/wx-config32
75   install -dm 755 "${pkgdir}"/usr/share/licenses
76   ln -s wxgtk2 "${pkgdir}"/usr/share/licenses/lib32-wxgtk2
79 # vim: ts=2 sw=2 et: