Date: Thursday, February 20, 2020 @ 18:31:43 Author: archange Revision: 577301
Initial addition of python-qdarkstyle to [community] Required by spyder 4.x Added: python-qdarkstyle/ python-qdarkstyle/repos/ python-qdarkstyle/trunk/ python-qdarkstyle/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Added: python-qdarkstyle/trunk/PKGBUILD =================================================================== --- python-qdarkstyle/trunk/PKGBUILD (rev 0) +++ python-qdarkstyle/trunk/PKGBUILD 2020-02-20 18:31:43 UTC (rev 577301) @@ -0,0 +1,36 @@ +# Maintainer: Bruno Pagani <[email protected]> + +_pkg=QDarkStyle +pkgname=python-${_pkg,,} +pkgver=2.8 +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) +source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz) +sha256sums=('6a967c4b664446f8bed9df12d1032cf68cb54f186bfc9cbfdbbc756bf9a5d475') + +build() { + cd ${_pkg}-${pkgver} + python setup.py build +} + +check() { + cd ${_pkg}-${pkgver} + # PyQt5 tests + python example/example.py --qt_from=pyqt5 --test + python example/example.py --qt_from=pyqt5 --test --no_dark + # PySide2 tests + python example/example.py --qt_from=pyside2 --test + python example/example.py --qt_from=pyside2 --test --no_dark +} + +package() { + cd ${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname} +}
