[arch-commits] Commit in python-wxpython/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Jun 6 13:49:05 UTC 2021


    Date: Sunday, June 6, 2021 @ 13:49:04
  Author: felixonmars
Revision: 956242

upgpkg: python-wxpython 1:4.0.7.2-1: revert to 4.0.7.2 for kicad (FS#70908)

Modified:
  python-wxpython/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-06 11:45:47 UTC (rev 956241)
+++ PKGBUILD	2021-06-06 13:49:04 UTC (rev 956242)
@@ -4,10 +4,11 @@
 
 pkgname=python-wxpython
 _pkgname=wxPython
-pkgver=4.1.1
-# _pkgver="${pkgver%.*}"
-# _post="${pkgver##*.}"
+pkgver=4.0.7.2
+_pkgver="${pkgver%.*}"
+_post="${pkgver##*.}"
 pkgrel=1
+epoch=1
 pkgdesc='Cross-platform GUI toolkit'
 arch=('x86_64')
 license=('custom:wxWindows')
@@ -16,18 +17,21 @@
 optdepends=('python-pypubsub: Alternative to the deprecated wx.lib.pubsub API')
 makedepends=('mesa' 'glu' 'webkit2gtk' 'python-requests' 'python-setuptools')
 checkdepends=('xorg-server-xvfb' 'python-pytest-forked' 'python-numpy')
-#source=("https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-$_pkgver.post$_post.tar.gz")
-source=("https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-$pkgver.tar.gz")
-sha512sums=('00924008b97bbecb824c3fffd46fc76a5a3115d9346eb95baccc6cca99c080aa80b586af42fece8a3b4d234f2d07ffa8b66b50a164c41cbd95abc9b139c32809')
+source=("https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-$_pkgver.post$_post.tar.gz")
+sha512sums=('7af89db90a0f7e6b644d61c1ede01ec36a2c295e46d44692ae9dbc4af923310c1b498a52f45b02a89e8917d844c6abe67e5f3fdd9c1d51da3312899319a349e4')
 
+prepare() {
+  sed -i "s|WX_CONFIG = 'wx-config'|WX_CONFIG = 'wx-config-gtk3'|" $_pkgname-$_pkgver.post$_post/build.py
+}
+
 build() {
-  #cd "$_pkgname-$_pkgver.post$_post"
-  cd "$_pkgname-$pkgver"
-  python build.py build --release
+  cd "$_pkgname-$_pkgver.post$_post"
+
+  python build.py build --use_syswx --release
 }
 
 check() {
-  cd "$_pkgname-$pkgver"
+  cd "$_pkgname-$_pkgver.post$_post"
 
   # there are segfaulting tests so --forked ensures we get sensible results
   PYTHONPATH=$PWD xvfb-run pytest --forked unittests || echo "==> WARNING: tests usually fail randomly"
@@ -34,7 +38,7 @@
 }
 
 package() {
-  cd "$_pkgname-$pkgver"
+  cd "$_pkgname-$_pkgver.post$_post"
 
   python build.py install --destdir="$pkgdir"
 



More information about the arch-commits mailing list