summaryrefslogtreecommitdiff
path: root/python-hat-juggler
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2023-03-08 19:05:32 +0100
committerbozo.kopic <bozo@kopic.xyz>2023-03-08 19:05:32 +0100
commite56cbcc1091c4dbe1d58e7e1705c25e4fdb64204 (patch)
treecd664afbd684219607cfb4efa133869c0879dd2d /python-hat-juggler
parent5c76c8ab23ba5ca51a4bc85e89c4d7bec6663087 (diff)
.
Diffstat (limited to 'python-hat-juggler')
-rw-r--r--python-hat-juggler/.gitignore4
-rw-r--r--python-hat-juggler/PKGBUILD25
2 files changed, 29 insertions, 0 deletions
diff --git a/python-hat-juggler/.gitignore b/python-hat-juggler/.gitignore
new file mode 100644
index 0000000..8cdb4fc
--- /dev/null
+++ b/python-hat-juggler/.gitignore
@@ -0,0 +1,4 @@
+/pkg
+/python-hat-juggler-*.pkg.tar.*
+/src
+/v*.tar.gz
diff --git a/python-hat-juggler/PKGBUILD b/python-hat-juggler/PKGBUILD
new file mode 100644
index 0000000..8731ebb
--- /dev/null
+++ b/python-hat-juggler/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Bozo Kopic <bozo@kopic.xyz>
+
+_name=hat-juggler
+pkgname=python-$_name
+pkgver=0.6.10
+pkgrel=1
+pkgdesc="Juggler communication protocol"
+url="https://github.com/hat-open/hat-juggler"
+license=('Apache')
+arch=('any')
+depends=('python-aiohttp' 'python-hat-aio' 'python-hat-json' 'python-hat-util')
+makedepends=('python-hat-doit' 'python-installer')
+source=("https://github.com/hat-open/hat-juggler/archive/refs/tags/v$pkgver.tar.gz")
+sha256sums=('179e8f7664898860c5cc127467e53e9fea103fdf410ae7f6e449b763f72784d6')
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python -m doit build_py
+}
+
+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
+}