blob: b93a9b48bb5ff333bc84f631f864a3554211abe0 (
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
|
# Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com>
pkgname=jupyterhub-systemdspawner
pkgdesc="Spawn JupyterHub single-user servers with systemd"
pkgver=1.0.2
pkgrel=1
url="https://github.com/jupyterhub/systemdspawner"
arch=('any')
license=('BSD-3-Clause')
depends=(
'jupyterhub'
'systemd'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
_pypi=${pkgname/-/_}
source=(
"git+https://github.com/jupyterhub/systemdspawner.git#tag=v$pkgver"
)
sha256sums=(
'b05603be51faf7aaf52d823e42c70de8fbcda2a8d2332b48792604d0da11f256'
)
build() {
cd systemdspawner
python -m build --wheel --no-isolation
}
package() {
cd systemdspawner
python -m installer --destdir="$pkgdir" "dist/$_pypi-$pkgver-"*.whl
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
}
|