Package Details: wxpython-gtk2 3.0.2.0-6

Git Clone URL: https://aur.archlinux.org/wxpython-gtk2.git (read-only)
Package Base: wxpython-gtk2
Description: A wxWidgets GUI toolkit for Python (GTK2 version)
Upstream URL: https://www.wxpython.org
Licenses: custom:wxWindows
Conflicts: wxpython
Provides: wxpython
Submitter: fredericva
Maintainer: None
Last Packager: fredericva
Votes: 1
Popularity: 0.000094
First Submitted: 2018-02-02 10:42
Last Updated: 2018-03-26 10:28

Required by (90)

Sources (2)

Latest Comments

fredericva commented on 2018-03-26 10:28

@lyra: added, thanks!

lyra commented on 2018-03-24 17:23

Add svn in dependencies. My build failed because of it:

bin/subrepos-make: line 24: svn: command not found bin/subrepos-make: line 25: svn: command not found bin/subrepos-make: line 26: svn: command not found bin/subrepos-make: line 27: svn: command not found bin/subrepos-make: line 28: svn: command not found bin/subrepos-make: line 29: svn: command not found bin/subrepos-make: line 30: svn: command not found bin/subrepos-make: line 31: svn: command not found

fredericva commented on 2018-03-03 16:43

@mika: fixed, thanks!

mika commented on 2018-03-03 13:00

The upstream https://downloads.sourceforge.net/wxpython/wxPython-src-3.0.2.0.tar.bz2 seems broken: only 652o and can not be extracted. Its sha256sum fails.

This seems to work for me using the github upstream:

# Maintainer: Frederic Van Assche <frederic@fredericva.com>
# Original maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=wxpython-gtk2
pkgver=3.0.2.0
pkgrel=6
pkgdesc="A wxWidgets GUI toolkit for Python (GTK2 version)"
arch=('x86_64')
license=('custom:wxWindows')
url="https://www.wxpython.org"
depends=('wxgtk2' 'python2')
makedepends=('mesa' 'glu')
provides=('wxpython')
conflicts=('wxpython')
source=("https://github.com/wxWidgets/wxPython/archive/wxPy-${pkgver}.tar.gz"
        "fix-plot.patch")
sha256sums=('b068d76e9773c5b0cb0620a66827fca35b8ab9364a2fc8b865ef125720b26afc'
            '2d8b2bdbf55172738c7bf93955e552aac61842800c3b8b0a2e1f07f4314abc65')

prepare() {
    find . -type f -exec sed -i 's/env python/env python2/' {} \;

    cd wxPython-wxPy-${pkgver}/wxPython
    # Fix plot library (FS#42807)
    patch -Np1 -i ../../fix-plot.patch
}

build() {
    cd wxPython-wxPy-${pkgver}
    ./configure \
        --prefix=/usr \
        --libdir=/usr/lib \
        --includedir=/usr/include \
        --with-gtk=2 \
        --with-opengl \
        --enable-unicode \
        --enable-graphics_ctx \
        --disable-precomp-headers \
        --with-regex=sys \
        --with-libpng=sys \
        --with-libxpm=sys \
        --with-libjpeg=sys \
        --with-libtiff=sys
#        --with-wx-config=/usr/bin/wx-config-gtk3
    cd wxPython
    bin/subrepos-make
    python2 setup.py WXPORT=gtk2 UNICODE=1 build
}

package() {
    cd wxPython-wxPy-${pkgver}/wxPython
    python2 setup.py WXPORT=gtk2 UNICODE=1 install --root="${pkgdir}"
    install -Dm644 ../docs/licence.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}

diggit commented on 2018-02-03 15:40

Hi, is it possible to enable parallel compilation?