[arch-commits] Commit in python-qdarkstyle/repos/community-any (PKGBUILD PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Wed Jun 29 14:30:36 UTC 2022
Date: Wednesday, June 29, 2022 @ 14:30:36
Author: archange
Revision: 1240559
archrelease: copy trunk to community-any
Added:
python-qdarkstyle/repos/community-any/PKGBUILD
(from rev 1240557, python-qdarkstyle/trunk/PKGBUILD)
Deleted:
python-qdarkstyle/repos/community-any/PKGBUILD
----------+
PKGBUILD | 74 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 37 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-29 14:30:35 UTC (rev 1240558)
+++ PKGBUILD 2022-06-29 14:30:36 UTC (rev 1240559)
@@ -1,37 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=QDarkStyle
-pkgname=python-${_pkg,,}
-pkgver=3.0.2
-pkgrel=3
-pkgdesc="Dark style sheet for QtWidgets application"
-arch=(any)
-url="https://github.com/ColinDuquesnoy/QDarkStyleSheet"
-license=(MIT CCPL)
-depends=(python-helpdev python-qtpy)
-makedepends=(python-setuptools)
-checkdepends=(python-pyqt5 pyside2 python-pytest python-pytest-qt)
-# 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=('a0c13508d2bf0f4919abb9cb5e4c3c8daa768b5da7232af313aeb194d3a61a2f')
-
-build() {
- cd ${_pkg}Sheet-${pkgver}
- python setup.py build
-}
-
-check() {
- cd ${_pkg}Sheet-${pkgver}
- # PyQt5 tests
- python -m qdarkstyle.example --qt_from=pyqt5 --test --offscreen
- # PySide2 tests, https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/275
- sed -i 's|dw_buttons.checkBoxTristate.setCheckState(1)|dw_buttons.checkBoxTristate.setCheckState(QtCore.Qt.Unchecked)|' qdarkstyle/example/__main__.py
- python -m qdarkstyle.example --qt_from=pyside2 --test --offscreen
-}
-
-package() {
- 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}
-}
Copied: python-qdarkstyle/repos/community-any/PKGBUILD (from rev 1240557, python-qdarkstyle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-06-29 14:30:36 UTC (rev 1240559)
@@ -0,0 +1,37 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=QDarkStyle
+pkgname=python-${_pkg,,}
+pkgver=3.0.3
+pkgrel=1
+pkgdesc="Dark style sheet for QtWidgets application"
+arch=(any)
+url="https://github.com/ColinDuquesnoy/QDarkStyleSheet"
+license=(MIT CCPL)
+depends=(python-helpdev python-qtpy)
+makedepends=(python-setuptools)
+checkdepends=(python-pyqt5 pyside2 python-pytest python-pytest-qt)
+# 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=('5b74055750c14efec250a1c0307c2f21db9517eb63c0af009af5a06f1fce36c0')
+
+build() {
+ cd ${_pkg}Sheet-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}Sheet-${pkgver}
+ # PyQt5 tests
+ python -m qdarkstyle.example --qt_from=pyqt5 --test --offscreen
+ # PySide2 tests, https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/275
+ sed -i 's|dw_buttons.checkBoxTristate.setCheckState(1)|dw_buttons.checkBoxTristate.setCheckState(QtCore.Qt.Unchecked)|' qdarkstyle/example/__main__.py
+ python -m qdarkstyle.example --qt_from=pyside2 --test --offscreen
+}
+
+package() {
+ 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