Date: Saturday, October 26, 2019 @ 06:49:54
  Author: felixonmars
Revision: 520323

archrelease: copy trunk to community-staging-x86_64

Added:
  python-wxpython/repos/community-staging-x86_64/
  python-wxpython/repos/community-staging-x86_64/PKGBUILD
    (from rev 520321, python-wxpython/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: python-wxpython/repos/community-staging-x86_64/PKGBUILD (from rev 
520321, python-wxpython/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-10-26 06:49:54 UTC (rev 520323)
@@ -0,0 +1,43 @@
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+# Contributor: Eric Bélanger <[email protected]>
+
+pkgname=python-wxpython
+_pkgname=wxPython
+pkgver=4.0.6
+pkgrel=2
+pkgdesc='Cross-platform GUI toolkit'
+arch=('x86_64')
+license=('custom:wxWindows')
+url='https://www.wxpython.org'
+depends=('wxgtk3' 'python-six')
+optdepends=('python-pypubsub: Alternative to the deprecated wx.lib.pubsub API')
+makedepends=('mesa' 'glu' 'webkit2gtk' 'python-pathlib2' 'python-requests' 
'python-setuptools')
+checkdepends=('xorg-server-xvfb' 'python-pytest' 'python-numpy')
+source=("https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-$pkgver.tar.gz";)
+sha512sums=('bfe799e1a0987cb57f2e31199cdb522471aaa08bb3b642fdf4130f4219b81487d4b6252f7a8afd3af7cdaeef2e992cecfc581e97d8b42307a4e0a8c9009db301')
+
+prepare() {
+  sed -i "s|WX_CONFIG = 'wx-config'|WX_CONFIG = 'wx-config-gtk3'|" 
$_pkgname-$pkgver/build.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python build.py build --use_syswx --release
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  xvfb-run python build.py test
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python build.py install --destdir="$pkgdir"
+
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+  find "$pkgdir/usr/lib" -type f | xargs chmod 644
+}
+

Reply via email to