-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gotop: Fix an issue that gotop version cannot be ...
... correctly displayed by `gotop -v`; Bump REL
- Loading branch information
1 parent
085786a
commit 0169dd6
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |