Commit 2277a2b0 authored by Luca Giambonini's avatar Luca Giambonini

python-wxpython small fixes [skip-ci]

parent 61ed2a5d
Pipeline #3489 skipped
pkgname=python2-wxpython
pkgver=3.0.2.0
pkgrel=3
pkgrel=4
pkgdesc="A wxWidgets GUI toolkit for Python"
arch=('x86_64')
url="https://www.wxpython.org"
license=('custom:wxWindows')
depends=('wxgtk' 'python2')
depends=('wxgtk3' 'python2')
makedepends=('mesa' 'glu')
conflicts=(wxpython)
replaces=(wxpython)
......@@ -29,7 +29,7 @@ build() {
./configure --prefix=/usr \
--libdir=/usr/lib \
--includedir=/usr/include \
--with-gtk=2 \
--with-gtk=3 \
--with-opengl \
--enable-unicode \
--enable-graphics_ctx \
......@@ -38,13 +38,15 @@ build() {
--with-libjpeg=sys \
--with-libtiff=sys \
--disable-precomp-headers \
--without-gconf
cd "${srcdir}/wxPython-src-${pkgver}/wxPython"
python2 setup.py WXPORT=gtk2 UNICODE=1 build
--without-gconf \
--with-wx-config=/usr/bin/wx-config-gtk3
cd wxPython
python2 setup.py WX_CONFIG=/usr/bin/wx-config-gtk3 WXPORT=gtk3 UNICODE=1 build
}
package() {
cd "${srcdir}/wxPython-src-${pkgver}/wxPython"
python2 setup.py WXPORT=gtk2 UNICODE=1 install --root="${pkgdir}"
install -D -m644 ../docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd wxPython-src-${pkgver}/wxPython
python2 setup.py WX_CONFIG=/usr/bin/wx-config-gtk3 WXPORT=gtk3 UNICODE=1 install --root="${pkgdir}" --optimize=1
for file in "${pkgdir}"/usr/bin/*; do mv "${file}" "${file}2"; done
install -Dm644 ../docs/licence.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
......@@ -9,7 +9,7 @@ arch=('x86_64')
license=('custom:wxWindows')
url="https://www.wxpython.org"
depends=('wxgtk3' 'python3-setuptools' 'python3-six') #'python3-pypubsub')
makedepends=('mesa' 'glu' 'webkit2gtk')
makedepends=('mesa' 'glu' 'libwebkit-gtk2')
checkdepends=('xorg-server-xvfb' 'python3-pytest' 'python3-numpy')
source=("https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-${pkgver}.tar.gz")
sha512sums=('48895f191150c63c253eb4136b78ff7803b6df566ca92b9fcf3c3fff3c893a57ff52a51b331333cf2200a053b8d0ea7facb39d7bfb581a78e009a24c31437cae')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment