summaryrefslogtreecommitdiff
path: root/python-hat-json/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'python-hat-json/PKGBUILD')
-rw-r--r--python-hat-json/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/python-hat-json/PKGBUILD b/python-hat-json/PKGBUILD
new file mode 100644
index 0000000..133b085
--- /dev/null
+++ b/python-hat-json/PKGBUILD
@@ -0,0 +1,24 @@
+_name=hat-json
+pkgname=python-$_name
+pkgver=0.5.13
+pkgrel=1
+pkgdesc="Hat JSON library"
+url="https://github.com/hat-open/hat-json"
+license=('Apache')
+arch=('any')
+depends=('python-hat-util' 'python-jsonpatch' 'python-jsonschema'
+ 'python-yaml' 'python-tomli' 'python-tomli-w')
+makedepends=('python-hat-doit' 'python-installer')
+source=("https://github.com/hat-open/hat-json/archive/refs/tags/v$pkgver.tar.gz")
+sha256sums=('d0af187fbdb2f53584d91ba213c3f2a46907e9ba5ed9edd63ae1d5248f438c47')
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python -m doit
+}
+
+package() {
+ cd "$srcdir/$_name-$pkgver"
+ python -m installer --destdir="$pkgdir" build/py/dist/*.whl
+ install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}