Date: Monday, January 23, 2023 @ 00:44:25 Author: grawlinson Revision: 1387816
addpkg: python-dict2css 0.2.4-1 Added: python-dict2css/ python-dict2css/repos/ python-dict2css/trunk/ python-dict2css/trunk/PKGBUILD ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Added: python-dict2css/trunk/PKGBUILD =================================================================== --- python-dict2css/trunk/PKGBUILD (rev 0) +++ python-dict2css/trunk/PKGBUILD 2023-01-23 00:44:25 UTC (rev 1387816) @@ -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 +}
