forked from kernelci/kci-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
53 lines (48 loc) · 1.48 KB
/
Copy pathPKGBUILD
File metadata and controls
53 lines (48 loc) · 1.48 KB
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
46
47
48
49
50
51
52
53
# Maintainer: Ben Copeland <ben.copeland@linaro.org>
# https://github.com/kernelci/kci-dev
pkgname=kci-dev
pkgver=0.1.10
pkgrel=1
pkgdesc='Stand alone tool for Linux Kernel developers and maintainers to interact with KernelCI'
arch=('any')
url='https://github.com/kernelci/kci-dev'
license=('LGPL-2.1-or-later')
depends=(
'python>=3.10'
'python-click'
'python-requests'
'python-gitpython'
'python-yaml'
'python-tabulate'
'python-matplotlib'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-poetry-core'
)
optdepends=(
'python-mplcursors: interactive cursor support for plots (AUR)'
'bash-completion: bash completion support'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kernelci/kci-dev/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')
build() {
cd "${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
# Shell completions
install -Dm644 completions/kci-dev-completion.bash \
"${pkgdir}/usr/share/bash-completion/completions/kci-dev"
install -Dm644 completions/_kci-dev \
"${pkgdir}/usr/share/zsh/site-functions/_kci-dev"
install -Dm644 completions/kci-dev.fish \
"${pkgdir}/usr/share/fish/vendor_completions.d/kci-dev.fish"
# License and documentation
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}