mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
8121fa0170
This commit has been automatically submitted by Github Actions.
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://kubernetes.io/
|
|
TERMUX_PKG_DESCRIPTION="Kubernetes.io client binary"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.31.4"
|
|
TERMUX_PKG_SRCURL=https://dl.k8s.io/v$TERMUX_PKG_VERSION/kubernetes-src.tar.gz
|
|
TERMUX_PKG_SHA256=9b221410e1366705f75866bd82e02d84cfaee04ecbef75b91a425f373b99c9b0
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_get_source() {
|
|
mkdir -p "$TERMUX_PKG_CACHEDIR"
|
|
mkdir -p "$TERMUX_PKG_SRCDIR"
|
|
|
|
termux_download "$TERMUX_PKG_SRCURL" "$TERMUX_PKG_CACHEDIR"/kubernetes-src.tar.gz \
|
|
"$TERMUX_PKG_SHA256"
|
|
|
|
tar xf "$TERMUX_PKG_CACHEDIR"/kubernetes-src.tar.gz \
|
|
-C "$TERMUX_PKG_SRCDIR"
|
|
}
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
|
|
# Needed to generate manpages.
|
|
#(
|
|
# export GOPATH="$TERMUX_PKG_BUILDDIR/host"
|
|
# unset GOOS GOARCH CGO_LDFLAGS
|
|
# unset CC CXX CFLAGS CXXFLAGS LDFLAGS
|
|
# cd "$TERMUX_PKG_SRCDIR"
|
|
# ./hack/update-generated-docs.sh
|
|
#)
|
|
|
|
export GOPATH="$TERMUX_PKG_BUILDDIR/target"
|
|
#chmod +w "$TERMUX_PKG_SRCDIR"/_output
|
|
#rm -rf "$TERMUX_PKG_SRCDIR"/_output
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"/cmd/kubectl
|
|
go build .
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 "$TERMUX_PKG_SRCDIR"/cmd/kubectl/kubectl \
|
|
"$TERMUX_PREFIX"/bin/kubectl
|
|
|
|
#mkdir -p "$TERMUX_PREFIX"/share/man/man1
|
|
#cp -f "$TERMUX_PKG_SRCDIR"/docs/man/man1/kubectl-*.1 \
|
|
# "$TERMUX_PREFIX"/share/man/man1/
|
|
}
|