summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 466567a6e650812da55267bfe0ac021bfe9f7d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Bozo Kopic <bozo@kopic.xyz>

_name=hat-juggler
pkgname=python-$_name
pkgver=0.6.14
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-build' 'python-hat-doit' 'python-installer')
source=("https://github.com/hat-open/hat-juggler/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('dea73a69189a85b583263e64e9bf25219b688710b0d0e96b89ea9fd1fca17876')

build() {
    cd "$srcdir/$_name-$pkgver"
    sed -i -e 's/"aiohttp ~=3.8.4"/"aiohttp >=3.8.4"/' pyproject.toml
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}