2
2
3
3
pkgbase=cri-tools
4
4
pkgname=(crictl critest)
5
- pkgver=1.26.0
6
- _commit=cf1c8287fcef4444226e54482bf3827e8f804421 # v1.26.0
5
+ pkgver=1.26.1
6
+ _commit=300f0781645f12437b43fba5dd232733e0f2f82f # v1.26.1
7
7
pkgrel=1
8
8
pkgdesc=" CLI and validation tools for Kubelet Container Runtime Interface (CRI)"
9
9
arch=(x86_64)
@@ -12,10 +12,9 @@ license=(Apache)
12
12
groups=(kubernetes-tools)
13
13
depends=(glibc)
14
14
makedepends=(git go)
15
- options=(debug)
16
15
# can only build from git: https://github.com/kubernetes-sigs/cri-tools/issues/676
17
16
source=(
18
- git+https://github.com/kubernetes-sigs/ $pkgbase #commit=$_commit
17
+ git+$url #commit=$_commit
19
18
$pkgbase -1.24.1-makefile.patch
20
19
)
21
20
sha512sums=(' SKIP'
@@ -43,18 +42,20 @@ build() {
43
42
mkdir -vp completions
44
43
local _binary
45
44
for _binary in crictl; do
46
- $pkgbase /build/bin/$_binary completion bash > completions/$_binary
47
- $pkgbase /build/bin/$_binary completion zsh > completions/_$_binary
45
+ $pkgbase /build/bin/linux/amd64/$_binary completion bash > completions/$_binary
46
+ $pkgbase /build/bin/linux/amd64/$_binary completion zsh > completions/_$_binary
47
+ $pkgbase /build/bin/linux/amd64/$_binary completion fish > completions/$_binary .fish
48
48
done
49
49
}
50
50
51
51
package_crictl () {
52
52
pkgdesc=" A CLI for CRI-compatible container runtimes"
53
53
54
- install -vDm 755 $pkgbase /build/bin/$pkgname -t " $pkgdir /usr/bin/"
54
+ install -vDm 755 $pkgbase /build/bin/linux/amd64/ $pkgname -t " $pkgdir /usr/bin/"
55
55
# shell completion
56
56
install -vDm 644 completions/$pkgname -t " $pkgdir /usr/share/bash-completion/completions/"
57
57
install -vDm 644 completions/_$pkgname -t " $pkgdir /usr/share/zsh/site-functions/"
58
+ install -vDm 644 completions/$pkgname .fish -t " $pkgdir /usr/share/fish/completions/"
58
59
# docs
59
60
install -vDm 644 $pkgbase /docs/$pkgname .md -t " $pkgdir /usr/share/doc/$pkgname /"
60
61
install -vDm 644 $pkgbase /docs/examples/* .{json,yaml} -t " $pkgdir /usr/share/doc/$pkgname /examples/"
@@ -64,7 +65,7 @@ package_crictl() {
64
65
package_critest () {
65
66
pkgdesc=" A benchmarking CLI for CRI-compatible container runtimes"
66
67
67
- install -vDm 755 $pkgbase /build/bin/$pkgname -t " $pkgdir /usr/bin/"
68
+ install -vDm 755 $pkgbase /build/bin/linux/amd64/ $pkgname -t " $pkgdir /usr/bin/"
68
69
# docs
69
70
install -vDm 644 $pkgbase /docs/{benchmark,validation}.md -t " $pkgdir /usr/share/doc/$pkgname /"
70
71
install -vDm 644 $pkgbase /{{CHANGELOG,CONTRIBUTING,README,code-of-conduct}.md,SECURITY_CONTACTS} -t " $pkgdir /usr/share/doc/$pkgname /"
0 commit comments