-
-
Save anonymous/ecc4b7bf4e6f4fedcb075336c3874f6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Tobias Bachmann <tobachmann@gmx.de> | |
pkgname=python2-wxpython-phoenix | |
pkgver=4.0.0b2 | |
pkgrel=1 | |
pkgdesc="Python 3 implementation of wxPython" | |
_name=wxPython | |
arch=('any') | |
url="https://github.com/wxWidgets/Phoenix" | |
license=('custom:wxWindows') | |
groups=() | |
depends=('python') | |
makedepends=('mesa' 'glu' 'git' 'libpng' 'libjpeg-turbo' 'libtiff' 'sdl' 'gst-plugins-base' 'libnotify' 'freeglut' 'gtk3' 'webkit2gtk') | |
provides=('wxpython-phoenix') | |
conflicts=('wxpython-phoenix-bin' 'wxpython-phoenix-git') | |
replaces=() | |
backup=() | |
options=(!emptydirs) | |
install= | |
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") | |
sha256sums=('1d34c3e2ff475ca6d2a11e8addd0333e4f616cc74f6bfcda5c6e96f51478666d') | |
package() { | |
cd "$srcdir/$_name-$pkgver" | |
python2 setup.py install --root="$pkgdir/" --optimize=1 | |
# We have to rename the files in /usr/bin to avoid conflicts with python2 wxPython | |
# I've used the naming convention established in wxpython-phoenix-git | |
cd "$pkgdir/usr/bin" | |
for file in *; do mv ${file} ${file}-phoenix; done | |
chmod 644 "$pkgdir"/usr/lib/python2.7/site-packages/wxPython-4.0.0b2-py2.7.egg-info/* | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment