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

Filipe Laíns ffy00 at archlinux.org
Fri Aug 17 20:13:10 UTC 2018


    Date: Friday, August 17, 2018 @ 20:13:10
  Author: ffy00
Revision: 372559

upgpkg: python-wxpython 4.0.3-3

Modified:
  python-wxpython/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++----------------------
 1 file changed, 14 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-17 20:02:10 UTC (rev 372558)
+++ PKGBUILD	2018-08-17 20:13:10 UTC (rev 372559)
@@ -2,7 +2,8 @@
 # Maintainer: Eric Bélanger <eric at archlinux.org>
 
 pkgname=python-wxpython
-pkgver=4.0.1
+_pkgname=wxPython
+pkgver=4.0.3
 pkgrel=3
 pkgdesc="Phoenix wxWidgets GUI toolkit for Python"
 arch=('x86_64')
@@ -10,29 +11,18 @@
 url="https://www.wxpython.org"
 depends=('wxgtk3' 'python-setuptools' 'python-six')
 makedepends=('mesa' 'glu' 'webkit2gtk')
-checkdepends=('xorg-server-xvfb' 'python-pytest' 'python-numpy')
-source=("https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-${pkgver}.tar.gz"
-        "use-waf-2.0.8.patch"
-        "https://wxpython.org/Phoenix/tools/waf-2.0.8.bz2")
-sha256sums=('f8f2ac1a75368b9b103259addc77f4e3dfe729c6d70aa1fd0b7e9c5b6075c710'
-            'e88c92a4ad7fa8e692ffd816dc20b897c4e5b7fc60dd167226298b3b14280f66'
-            '6cf9cc2a7d96aa6389de0e2636b31dbc8b508f18ef9ba278199c2b048003f384')
+checkdepends=('xorg-server-xvfb' 'python-pytest' 'python-numpy' 'python-pypubsub')
+source=("https://files.pythonhosted.org/packages/source/w/wxPython/wxPython-${pkgver}.tar.gz")
+sha512sums=('911dd98d15b0cbc2551f1b22a21fdae4450656ca59cc93216b7c6a8a00e399b929b78484637992d78cecffb098b8d8dc408c24795549827e2f90ce42740c3bf9')
 
-prepare() {
-    cd wxPython-${pkgver}
+build() {
+    cd $_pkgname-$pkgver
 
-    # use python 3.7 compatible waf
-    patch -p1 -i ../use-waf-2.0.8.patch
-    ln -sf "${srcdir}/waf-2.0.8" bin/
+    python setup.py build
 }
 
-build() {
-    cd wxPython-${pkgver}
-    python3 setup.py build
-}
-
 check() {
-    cd wxPython-${pkgver}
+    cd $_pkgname-$pkgver
 
     pythonpaths=("$PWD"/build/lib.linux-$CARCH-3*)
 
@@ -45,8 +35,10 @@
 }
 
 package() {
-    cd wxPython-${pkgver}
-    python3 setup.py install --root="${pkgdir}" --optimize=1
-    install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
+    cd $_pkgname-$pkgver
+
+    python3 setup.py install --root="$pkgdir" --skip-build --optimize=1
+
+    install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
     find "$pkgdir/usr/lib" -type f | xargs chmod 644
 }



More information about the arch-commits mailing list