Date: Monday, January 23, 2023 @ 00:45:10
  Author: grawlinson
Revision: 1387817

archrelease: copy trunk to community-any

Added:
  python-dict2css/repos/community-any/
  python-dict2css/repos/community-any/PKGBUILD
    (from rev 1387816, python-dict2css/trunk/PKGBUILD)

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

Copied: python-dict2css/repos/community-any/PKGBUILD (from rev 1387816, 
python-dict2css/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2023-01-23 00:45:10 UTC (rev 1387817)
@@ -0,0 +1,44 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-dict2css
+pkgver=0.2.4
+pkgrel=1
+pkgdesc='A μ-library for constructing cascading style sheets from Python 
dictionaries'
+arch=('any')
+url='https://github.com/sphinx-toolbox/dict2css'
+license=('MIT')
+depends=(
+  'python'
+  'python-css-parser'
+  'python-domdf-python-tools'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-whey'
+)
+_commit='5b1c598e0fbaa2bfef8c4749b26a46254bacc4a9'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+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