Guest User

Untitled

a guest
Nov 30th, 2018
1,465
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Tobias Bachmann <tobachmann@gmx.de>
  2. #pkgbase=('python-wxpython-phoenix')
  3. pkgname=('python2-wxpython-phoenix')
  4. pkgver=4.0.1
  5. pkgrel=2
  6. pkgdesc="wxPython 4.x. This is a split package providing both Python 2 and Python 3 versions of wxPython 4.x (aka wxPython Phoenix)"
  7. _name=wxPython
  8. arch=('any')
  9. url="https://github.com/wxWidgets/Phoenix"
  10. license=('custom:wxWindows')
  11. groups=()
  12. depends=('python')
  13. makedepends=('python-setuptools' 'python2-setuptools' 'python-appdirs' 'python2-appdirs' 'python-six' 'python2-six' 'twine' 'python-sphinx' 'python2-sphinx' 'python-requests' 'python2-requests' 'python-pytest' 'python2-pytest' 'python-pytest-xdist' 'python2-pytest-xdist' 'python-pytest-timeout' 'python2-pytest-timeout' 'python-numpy' 'python2-numpy' 'mesa' 'glu' 'git' 'libpng' 'libjpeg-turbo' 'libtiff' 'sdl' 'gst-plugins-base' 'libnotify' 'freeglut' 'gtk3' 'webkit2gtk')
  14. provides=('wxpython-phoenix' 'python-wxpython')
  15. conflicts=('python-wxpython' 'wxpython-phoenix-bin' 'wxpython-phoenix-git' 'sk1' 'wammu')
  16. replaces=('wxpython-phoenix')
  17. backup=()
  18. options=(!emptydirs)
  19. install=
  20. source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
  21. sha256sums=('f8f2ac1a75368b9b103259addc77f4e3dfe729c6d70aa1fd0b7e9c5b6075c710')
  22.  
  23. #package_python-wxpython-phoenix() {
  24. # cd "$srcdir/$_name-$pkgver"
  25. # python setup.py install --root="$pkgdir/" --optimize=1
  26. # We have to rename the files in /usr/bin to avoid conflicts with python2 wxPython
  27. # I've used the naming convention established in wxpython-phoenix-git
  28. # cd "$pkgdir/usr/bin"
  29. # for file in *; do mv ${file} ${file}-phoenix; done
  30. # chmod 644 "$pkgdir"/usr/lib/python3.6/site-packages/wxPython-4.0.1-py3.6.egg-info/*
  31. #}
  32.  
  33. package_python2-wxpython-phoenix() {
  34. cd "$srcdir/$_name-$pkgver"
  35. python2 setup.py install --root="$pkgdir/" --optimize=1
  36. # We have to rename the files in /usr/bin to avoid conflicts with python2 wxPython
  37. # I've used the naming convention established in wxpython-phoenix-git
  38. cd "$pkgdir/usr/bin"
  39. for file in *; do mv ${file} ${file}-phoenix2; done
  40. chmod 644 "$pkgdir"/usr/lib/python2.7/site-packages/wxPython-4.0.1-py2.7.egg-info/*
  41. }
  42.  
  43. # vim:set ts=2 sw=2 et:
RAW Paste Data