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

Morten Linderud foxboron at archlinux.org
Mon Feb 3 21:40:29 UTC 2020


    Date: Monday, February 3, 2020 @ 21:40:29
  Author: foxboron
Revision: 561999

upgpkg: python-wxpython 4.0.7.2-1

Modified:
  python-wxpython/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-03 21:32:40 UTC (rev 561998)
+++ PKGBUILD	2020-02-03 21:40:29 UTC (rev 561999)
@@ -4,7 +4,9 @@
 
 pkgname=python-wxpython
 _pkgname=wxPython
-pkgver=4.0.7
+pkgver=4.0.7.2
+_pkgver="${pkgver%.*}"
+_post="${pkgver##*.}"
 pkgrel=1
 pkgdesc='Cross-platform GUI toolkit'
 arch=('x86_64')
@@ -14,27 +16,27 @@
 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.post2.tar.gz")
+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.post2/build.py
+  sed -i "s|WX_CONFIG = 'wx-config'|WX_CONFIG = 'wx-config-gtk3'|" $_pkgname-$_pkgver.post$_post/build.py
 }
 
 build() {
-  cd "$_pkgname-$pkgver.post2"
+  cd "$_pkgname-$_pkgver.post$_post"
 
   python build.py build --use_syswx --release
 }
 
 check() {
-  cd "$_pkgname-$pkgver.post2"
+  cd "$_pkgname-$_pkgver.post$_post"
 
   xvfb-run python build.py test
 }
 
 package() {
-  cd "$_pkgname-$pkgver.post2"
+  cd "$_pkgname-$_pkgver.post$_post"
 
   python build.py install --destdir="$pkgdir"
 



More information about the arch-commits mailing list