Commit 90e6a4ec authored by Hoang Nguyen's avatar Hoang Nguyen 🐢 Committed by alice
Browse files

community/k9s: delete specific commit and date strings

These strings are only used for 'version' argument showing when the
binary is built. We shouldn't use the same values as upstream released
binary.
parent 559b1544
......@@ -3,9 +3,7 @@
pkgname=k9s
_pkgname=github.com/derailed/k9s
pkgver=0.25.18
pkgrel=4
_commit=6085039f # git rev-parse --short HEAD
_date=2021-12-28T17:08:34UTC # git show -s --format=%ci | date -u +%FT%T%Z
pkgrel=5
pkgdesc="Kubernetes TUI"
url="https://k9scli.io"
# riscv64 FTBS
......@@ -25,8 +23,12 @@ export GOCACHE="$srcdir/go-build"
export GOTMPDIR="$srcdir"
build() {
local ldflags="-w -s -X $_pkgname/cmd.version=$pkgver -X $_pkgname/cmd.commit=$_commit -X $_pkgname/cmd.date=$_date"
go build -ldflags "$ldflags" -a -tags netgo -o execs/$pkgname main.go
local ldflags="
-X $_pkgname/cmd.version=$pkgver
-X $_pkgname/cmd.commit=AlpineLinux
-X $_pkgname/cmd.date=$(date +%FT%T%Z)
"
go build -ldflags "$ldflags" -tags netgo -o execs/$pkgname
./execs/k9s completion bash >k9s.bash
./execs/k9s completion zsh >k9s.zsh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment