0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 02:26:34 +00:00
Termux Github Actions 7619bcc659 bump(main/k9s): 0.32.7
This commit has been automatically submitted by Github Actions.
2024-11-17 00:37:45 +00:00

27 lines
1.0 KiB
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.32.7"
TERMUX_PKG_SRCURL=https://github.com/derailed/k9s/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=508f5d22616d0a741b72171d31df6e6baa45298b3614b7f9a171fe3f05e74365
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() {
termux_setup_golang
local GOPKG="github.com/derailed/k9s"
local GOLDFLAGS="-w -s -X ${GOPKG}/cmd.version=${TERMUX_PKG_VERSION} -X ${GOPKG}/cmd.commit=${TERMUX_PKG_VERSION}"
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"
go get -d -v
go build -ldflags "$GOLDFLAGS"
}
termux_step_make_install() {
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/derailed/k9s/k9s \
$TERMUX_PREFIX/bin/k9s
}