k9s: fix cross-platform builds
Generate Checksum / renovate (pull_request) Has been skipped
Details
Check build / Lint templates (pull_request) Successful in 23s
Details
Check build / Build packages (map[arch:x86_64-musl host:x86_64-musl libc:musl platform:linux/amd64 test:1]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:i686 host:i686 libc:glibc platform:linux/386 test:1]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:armv6l-musl host:x86_64-musl libc:musl platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:x86_64 host:x86_64 libc:glibc platform:linux/amd64 test:1]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:armv7l host:x86_64 libc:glibc platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:aarch64 host:x86_64 libc:glibc platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:aarch64-musl host:x86_64-musl libc:musl platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
Generate Checksum / renovate (pull_request) Has been skipped
Details
Check build / Lint templates (pull_request) Successful in 23s
Details
Check build / Build packages (map[arch:x86_64-musl host:x86_64-musl libc:musl platform:linux/amd64 test:1]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:i686 host:i686 libc:glibc platform:linux/386 test:1]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:armv6l-musl host:x86_64-musl libc:musl platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:x86_64 host:x86_64 libc:glibc platform:linux/amd64 test:1]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:armv7l host:x86_64 libc:glibc platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:aarch64 host:x86_64 libc:glibc platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
Check build / Build packages (map[arch:aarch64-musl host:x86_64-musl libc:musl platform:linux/amd64 test:0]) (pull_request) Has been cancelled
Details
This commit is contained in:
parent
a614bb9143
commit
3080a02cf7
|
@ -16,13 +16,28 @@ checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
|
||||||
export LDFLAGS="-fuse-ld=bfd"
|
export LDFLAGS="-fuse-ld=bfd"
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
|
aarch64*) export GOARCH=arm64 ;;
|
||||||
|
armv5*) export GOARCH=arm; export GOARM=5 ;;
|
||||||
|
armv6*) export GOARCH=arm; export GOARM=6 ;;
|
||||||
|
armv7*) export GOARCH=arm; export GOARM=7 ;;
|
||||||
|
i686*) export GOARCH=386 ;;
|
||||||
|
x86_64*) export GOARCH=amd64 ;;
|
||||||
|
ppc64le*) export GOARCH=ppc64le ;;
|
||||||
|
ppc64*) export GOARCH=ppc64 ;;
|
||||||
|
ppc*) export GOARCH=ppc ;;
|
||||||
|
mipsel*) export GOARCH=mipsle ;;
|
||||||
|
mips*) export GOARCH=mips ;;
|
||||||
|
riscv64*) export GOARCH=riscv64 ;;
|
||||||
|
*) broken="Unsupported architecture ${XBPS_TARGET_MACHINE}" ;;
|
||||||
|
esac
|
||||||
for shell in bash zsh fish; do
|
for shell in bash zsh fish; do
|
||||||
_build-k9s-xbps/bin/k9s completion $shell >k9s.$shell
|
go run main.go completion $shell >completion.$shell
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
for shell in bash zsh fish; do
|
for shell in bash zsh fish; do
|
||||||
vcompletion k9s.$shell $shell
|
vcompletion completion.$shell $shell
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue