[arch-commits] Commit in python-qstylizer/repos (community-any community-any/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Sun Apr 4 10:18:54 UTC 2021
Date: Sunday, April 4, 2021 @ 10:18:52
Author: archange
Revision: 911739
archrelease: copy trunk to community-any
Added:
python-qstylizer/repos/community-any/
python-qstylizer/repos/community-any/PKGBUILD
(from rev 911738, python-qstylizer/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-qstylizer/repos/community-any/PKGBUILD (from rev 911738, python-qstylizer/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-04-04 10:18:52 UTC (rev 911739)
@@ -0,0 +1,39 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=qstylizer
+pkgname=python-${_pkg}
+pkgver=0.1.10
+pkgrel=1
+pkgdesc="Qt stylesheet generation utility for PyQt/PySide"
+arch=(any)
+url="https://github.com/blambright/qstylizer"
+license=(MIT)
+depends=(python-inflection python-tinycss)
+makedepends=(python-pbr python-setuptools)
+checkdepends=(
+ python-pytest
+ python-pytest-runner
+ python-pytest-mock
+ python-pytest-xdist
+)
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('a5d561ef757d1751766674fba977e339cb4028b057a350969224403f286c4751')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ export PBR_VERSION=${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ PYTHONPATH="${PWD}"/build/lib/ pytest
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ export PBR_VERSION=${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list