2020-01-13 16:33:53 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://kubernetes.io/
|
2019-11-18 20:37:37 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Kubernetes.io client binary"
|
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-05-13 10:01:25 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
2020-08-27 20:09:43 +02:00
|
|
|
TERMUX_PKG_VERSION=1.19.0
|
2019-11-18 20:37:37 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://dl.k8s.io/v$TERMUX_PKG_VERSION/kubernetes-src.tar.gz
|
2020-08-27 20:09:43 +02:00
|
|
|
TERMUX_PKG_SHA256=227f757a8900890d74a954828680bae743e4aa277037e1486b1598c79ed3440a
|
2019-11-18 20:37:37 +01:00
|
|
|
|
2020-07-21 10:02:33 +02:00
|
|
|
termux_step_get_source() {
|
2019-11-18 20:37:37 +01:00
|
|
|
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
|
|
|
|
|
2020-08-15 11:18:16 +02:00
|
|
|
#Needed to generate manpages.
|
2019-11-18 20:37:37 +01:00
|
|
|
#(
|
|
|
|
# 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
|
|
|
|
|
2020-08-13 13:43:45 +02:00
|
|
|
#mkdir -p "$TERMUX_PREFIX"/share/man/man1
|
2019-11-18 20:37:37 +01:00
|
|
|
#cp -f "$TERMUX_PKG_SRCDIR"/docs/man/man1/kubectl-*.1 \
|
|
|
|
# "$TERMUX_PREFIX"/share/man/man1/
|
|
|
|
}
|