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

Bruno Pagani archange at archlinux.org
Wed Apr 8 23:00:03 UTC 2020


    Date: Wednesday, April 8, 2020 @ 23:00:02
  Author: archange
Revision: 612816

upgpkg: python-qdarkstyle 2.8.1-1

Modified:
  python-qdarkstyle/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 22:59:43 UTC (rev 612815)
+++ PKGBUILD	2020-04-08 23:00:02 UTC (rev 612816)
@@ -2,7 +2,7 @@
 
 _pkg=QDarkStyle
 pkgname=python-${_pkg,,}
-pkgver=2.8
+pkgver=2.8.1
 pkgrel=1
 pkgdesc="Dark style sheet for QtWidgets application"
 arch=(any)
@@ -11,16 +11,18 @@
 depends=(python-helpdev python-qtpy)
 makedepends=(python-setuptools)
 checkdepends=(python-pyqt5 pyside2)
-source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('6a967c4b664446f8bed9df12d1032cf68cb54f186bfc9cbfdbbc756bf9a5d475')
+# Pypi tarballs do not provide tests files anymore
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('bc2f8d2b3644ed660c1267cba314df80a08ddaf28c1b7f701f6cdd6f44f70fdb')
 
 build() {
-  cd ${_pkg}-${pkgver}
+  cd ${_pkg}Sheet-${pkgver}
   python setup.py build
 }
 
 check() {
-  cd ${_pkg}-${pkgver}
+  cd ${_pkg}Sheet-${pkgver}
   # PyQt5 tests
   python example/example.py --qt_from=pyqt5 --test
   python example/example.py --qt_from=pyqt5 --test --no_dark
@@ -30,7 +32,7 @@
 }
 
 package() {
-  cd ${_pkg}-${pkgver}
+  cd ${_pkg}Sheet-${pkgver}
   python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
   install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}
 }


More information about the arch-commits mailing list