Date: Sunday, February 5, 2023 @ 08:54:55
  Author: grawlinson
Revision: 1392749

addpkg: python-qt-material 2.12.r4-1

Added:
  python-qt-material/
  python-qt-material/repos/
  python-qt-material/trunk/
  python-qt-material/trunk/PKGBUILD

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Added: python-qt-material/trunk/PKGBUILD
===================================================================
--- python-qt-material/trunk/PKGBUILD                           (rev 0)
+++ python-qt-material/trunk/PKGBUILD   2023-02-05 08:54:55 UTC (rev 1392749)
@@ -0,0 +1,47 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-qt-material
+pkgver=2.12.r4.g1f73d3d
+pkgrel=1
+pkgdesc='Material inspired stylesheet for PySide & PyQt'
+arch=('any')
+url='https://qt-material.readthedocs.io/'
+license=('BSD')
+depends=('python-jinja')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+_commit='1f73d3de269b09e493400615437c6c30b46be110'
+source=("$pkgname::git+https://github.com/UN-GCPDS/qt-material#commit=$_commit";)
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  # first known commit to receive latest version
+  local _pkgver='2.12'
+  local _pkgcommit='097bd2a06794b5ce0010f3209f26ea09df267c78'
+
+  git tag "$_pkgver" "$_pkgcommit"
+
+  git describe --tags | sed -e 's/^v//' -e 's/-/.r/' -e 's/-/./g'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to