blob: f90451e30f3acf2c01a08e601ce33eca6c632744 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Klaus Alexander Seistrup <klaus@seistrup.dk>
pkgname='python-jh2'
_srcname='h2'
pkgver=5.0.8
pkgrel=1
pkgdesc='HTTP/2 State-Machine based protocol implementation'
arch=('aarch64' 'x86_64')
url='https://github.com/jawah/h2'
license=('MIT') # SPDX-License-Identifier: MIT
depends=(
'gcc-libs'
'glibc'
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-maturin'
'python-setuptools'
'python-wheel'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('5467be3d50472ced50947707288926d23e9e0f4a563d2863bbda9f2e54e53b4b')
_srcdir="$_srcname-$pkgver"
build() {
cd "$_srcdir"
python -m build --wheel --no-isolation
}
package() {
cd "$_srcdir"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname/" \
{CHANGELOG,README}.rst
install -vDm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" \
LICENSE
}
|