move from unstable: kubectl
This commit is contained in:
parent
c0a78d58f6
commit
9c64c4b063
48
packages/kubectl/build.sh
Normal file
48
packages/kubectl/build.sh
Normal file
@ -0,0 +1,48 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://kubernetes.io
|
||||
TERMUX_PKG_DESCRIPTION="Kubernetes.io client binary"
|
||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.16.2
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://dl.k8s.io/v$TERMUX_PKG_VERSION/kubernetes-src.tar.gz
|
||||
TERMUX_PKG_SHA256=21d884b67abd1182958313474a40678ba8f3713e6b6f520401e42c02ba6ea302
|
||||
|
||||
termux_step_extract_package() {
|
||||
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/
|
||||
}
|
Loading…
Reference in New Issue
Block a user