Date: Saturday, October 8, 2022 @ 21:35:36 Author: grawlinson Revision: 1324437
addpkg: python-uri-template 1.2.0-1 Added: python-uri-template/ python-uri-template/repos/ python-uri-template/trunk/ python-uri-template/trunk/PKGBUILD ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Added: python-uri-template/trunk/PKGBUILD =================================================================== --- python-uri-template/trunk/PKGBUILD (rev 0) +++ python-uri-template/trunk/PKGBUILD 2022-10-08 21:35:36 UTC (rev 1324437) @@ -0,0 +1,50 @@ +# Maintainer: George Rawlinson <[email protected]> + +pkgname=python-uri-template +pkgver=1.2.0 +pkgrel=1 +pkgdesc='An implementation of RFC 6570 URI Templates' +arch=('any') +url='https://github.com/plinss/uri_template' +license=('MIT') +depends=('python') +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-wheel' + 'python-setuptools' +) +_commit='ae070b1716c853fbc5a3c879e6ef1d1cfb2c9533' +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 +} + +check() { + cd "$pkgname" + + python test.py +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}
