f6892c38d8
Cache dependencies for Golang packages
24 lines
896 B
Bash
24 lines
896 B
Bash
TERMUX_PKG_HOMEPAGE=https://k9scli.io
|
|
TERMUX_PKG_DESCRIPTION="Kubernetes CLI To Manage Your Clusters In Style!"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="Krishna Kanhaiya @kcubeterm"
|
|
TERMUX_PKG_VERSION=0.24.14
|
|
TERMUX_PKG_SRCURL=https://github.com/derailed/k9s/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=78e432824adb7ba6300784630f9cf371a379cc809b1cbb66aea0cc4fa07b3cf3
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
cd "$TERMUX_PKG_SRCDIR"
|
|
mkdir -p "${TERMUX_PKG_BUILDDIR}/src/github.com/derailed"
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${TERMUX_PKG_BUILDDIR}/src/github.com/derailed/k9s"
|
|
cd "${TERMUX_PKG_BUILDDIR}/src/github.com/derailed/k9s"
|
|
|
|
termux_go_get -d -v
|
|
go build
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/derailed/k9s/k9s \
|
|
$TERMUX_PREFIX/bin/k9s
|
|
}
|