PKGBUILD 1.46 KB
Newer Older
Manuel's avatar
Manuel committed
1
pkgname=wxgtk
Jeff Huang's avatar
Jeff Huang committed
2
pkgver=3.0.4
3
pkgrel=2
Manuel's avatar
Manuel committed
4 5 6 7
pkgdesc="GTK+ implementation of wxWidgets API for GUI"
arch=('x86_64')
url="http://wxwidgets.org"
license=('custom:wxWindows')
Jeff Huang's avatar
Jeff Huang committed
8
depends=('gtk2' 'libgl' 'gst-plugins-base-libs' 'libsm' 'libxxf86vm' 'libnotify')
9
makedepends=('gst-plugins-base' 'glu' 'libwebkit-gtk2')
Jeff Huang's avatar
Jeff Huang committed
10
optdepends=('libwebkit-gtk2: for webview support')
AlmAck's avatar
AlmAck committed
11
options=('!emptydirs')
Jeff Huang's avatar
Jeff Huang committed
12 13
source=(https://github.com/wxWidgets/wxWidgets/releases/download/v$pkgver/wxWidgets-$pkgver.tar.bz2
        'make-abicheck-non-fatal.patch')
Jeff Huang's avatar
Jeff Huang committed
14
sha256sums=('96157f988d261b7368e5340afa1a0cad943768f35929c22841f62c25b17bf7f0'
Jeff Huang's avatar
Jeff Huang committed
15
            '46a1bb97d69163547da13d5e23a4c73e68de27ee601da5d2fb5bc5c417931453')
AlmAck's avatar
AlmAck committed
16

Jeff Huang's avatar
Jeff Huang committed
17 18 19 20 21 22
prepare() {
  cd wxWidgets-${pkgver}

  # C++ ABI check is too strict and breaks with GCC 5.1
  # https://bugzilla.redhat.com/show_bug.cgi?id=1200611
  patch -Np1 -i ../make-abicheck-non-fatal.patch
23 24

  ./autogen.sh
Jeff Huang's avatar
Jeff Huang committed
25
}
Manuel's avatar
Manuel committed
26 27

build() {
AlmAck's avatar
AlmAck committed
28
  cd wxWidgets-${pkgver}
Michael Haesel's avatar
Michael Haesel committed
29 30 31 32 33 34 35 36
  ./configure \
    --prefix=/usr \
    --libdir=/usr/lib \
    --with-gtk=2 \
    --with-opengl \
    --enable-unicode \
    --enable-graphics_ctx \
    --enable-mediactrl \
Jeff Huang's avatar
Jeff Huang committed
37
    --enable-webview \
Michael Haesel's avatar
Michael Haesel committed
38 39 40 41 42 43 44
    --with-regex=builtin \
    --with-libpng=sys \
    --with-libxpm=sys \
    --with-libjpeg=sys \
    --with-libtiff=sys \
    --disable-precomp-headers \
    --without-gconf
Manuel's avatar
Manuel committed
45 46 47 48 49
  make
  make -C locale allmo
}

package() {
AlmAck's avatar
AlmAck committed
50
  cd wxWidgets-${pkgver}
Manuel's avatar
Manuel committed
51
  make DESTDIR="${pkgdir}" install
Michael Haesel's avatar
Michael Haesel committed
52
  install -Dm644 docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
Manuel's avatar
Manuel committed
53
}