Skip to content

Commit

Permalink
gotop: Fix an issue that gotop version cannot be ...
Browse files Browse the repository at this point in the history
... correctly displayed by `gotop -v`; Bump REL
  • Loading branch information
CamberLoid committed May 9, 2022
1 parent 085786a commit 0169dd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions extra-admin/gotop/autobuild/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
if [[ "${CROSS:-$ARCH}" != "loongson3" ]]; then
abinfo "Enabling buildmode=pie ..."
export GOFLAGS="${GOFLAGS} -buildmode=pie"
fi

abinfo "Enabling trimpath for reproducible build ..."
export GOFLAGS="${GOFLAGS} -trimpath"


abinfo "Building gotop ..."
go build \
-ldflags "-X main.Version=v${PKGVER} --extldflags \"${LDFLAGS}\"" \
-o "$PKGDIR"/usr/bin/gotop \
./cmd/gotop
2 changes: 1 addition & 1 deletion extra-admin/gotop/spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VER=4.1.3
REL=1
REL=2
SRCS="https://github.com/xxxserxxx/gotop/archive/v$VER.tar.gz"
CHKSUMS="sha256::c0a02276e718b988d1220dc452063759c8634d42e1c01a04c021486c1e61612d"
CHKUPDATE="anitya::id=226757"

0 comments on commit 0169dd6

Please sign in to comment.