Date: Saturday, October 8, 2022 @ 21:36:25
Author: grawlinson
Revision: 1324438
archrelease: copy trunk to community-any
Added:
python-uri-template/repos/community-any/
python-uri-template/repos/community-any/PKGBUILD
(from rev 1324437, python-uri-template/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-uri-template/repos/community-any/PKGBUILD (from rev 1324437,
python-uri-template/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-10-08 21:36:25 UTC (rev 1324438)
@@ -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
+}