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)
@@ -14,7 +14,7 @@ depends=(glibc)
14
14
makedepends=(git go)
15
15
# can only build from git: https://github.com/kubernetes-sigs/cri-tools/issues/676
16
16
source=(
17
- git+https://github.com/kubernetes-sigs/ $pkgbase #commit=$_commit
17
+ git+$url #commit=$_commit
18
18
$pkgbase -1.24.1-makefile.patch
19
19
)
20
20
sha512sums=(' SKIP'
@@ -42,18 +42,20 @@ build() {
42
42
mkdir -vp completions
43
43
local _binary
44
44
for _binary in crictl; do
45
- $pkgbase /build/bin/$_binary completion bash > completions/$_binary
46
- $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
47
48
done
48
49
}
49
50
50
51
package_crictl () {
51
52
pkgdesc=" A CLI for CRI-compatible container runtimes"
52
53
53
- 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/"
54
55
# shell completion
55
56
install -vDm 644 completions/$pkgname -t " $pkgdir /usr/share/bash-completion/completions/"
56
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/"
57
59
# docs
58
60
install -vDm 644 $pkgbase /docs/$pkgname .md -t " $pkgdir /usr/share/doc/$pkgname /"
59
61
install -vDm 644 $pkgbase /docs/examples/* .{json,yaml} -t " $pkgdir /usr/share/doc/$pkgname /examples/"
@@ -63,7 +65,7 @@ package_crictl() {
63
65
package_critest () {
64
66
pkgdesc=" A benchmarking CLI for CRI-compatible container runtimes"
65
67
66
- 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/"
67
69
# docs
68
70
install -vDm 644 $pkgbase /docs/{benchmark,validation}.md -t " $pkgdir /usr/share/doc/$pkgname /"
69
71
install -vDm 644 $pkgbase /{{CHANGELOG,CONTRIBUTING,README,code-of-conduct}.md,SECURITY_CONTACTS} -t " $pkgdir /usr/share/doc/$pkgname /"
0 commit comments