Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions srcpkgs/stern/template
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Template file for 'stern'
pkgname=stern
version=1.34.0
revision=1
revision=2
build_style=go
go_import_path="github.com/stern/stern"
go_ldflags="-X github.com/stern/stern/cmd.version=${version}
-X github.com/stern/stern/cmd.date=$(date +%Y-%m-%dT%H:%M:%SZ)
-linkmode=external
-compressdwarf=false"
short_desc="Multi pod and container log tailing for Kubernetes"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/stern/stern"
distfiles="https://github.com/stern/stern/archive/v${version}.tar.gz"
checksum=1cfec22cef9705e68fc46060ba85164af12bd07ede9264bafb67d11400996e71

# fix: collect2: fatal error: cannot find 'ld'
export LDFLAGS="-fuse-ld=bfd"
do_check() {
go test -p "$XBPS_MAKEJOBS" ./... -skip=TestSternCommand
}

post_build() {
for shell in bash fish zsh; do
Expand Down