diff options
author | Caleb Bassi | 2019-02-25 13:08:41 -0800 |
---|---|---|
committer | Caleb Bassi | 2019-02-25 13:08:41 -0800 |
commit | 84cf617f1d343a095345f9cc1f8adeb31d3b8698 (patch) | |
tree | 7a872f579e245d0b8ea4538bc7c5b60cae6ed125 | |
parent | 2236cee18ef2d2d97bdc511d84108bdee6f1f88f (diff) | |
download | aur-84cf617f1d343a095345f9cc1f8adeb31d3b8698.tar.gz |
Fix ldflags and GOPATH
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = gotop pkgdesc = A terminal based graphical activity monitor inspired by gtop and vtop pkgver = 3.0.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/cjbassi/gotop arch = x86_64 arch = i686 @@ -3,7 +3,7 @@ pkgname=gotop pkgver=3.0.0 -pkgrel=2 +pkgrel=3 pkgdesc='A terminal based graphical activity monitor inspired by gtop and vtop' arch=(x86_64 i686 arm armv6h armv7h aarch64) url="https://github.com/cjbassi/gotop" @@ -11,12 +11,17 @@ license=(AGPL3) provides=(gotop) conflicts=(gotop) makedepends=("go" "git") -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cjbassi/gotop/archive/${pkgver}.tar.gz") +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('d5147080bb6057f0bf0900b38438e89aa066959c845bdd4c84a9c9fe478b176f') build() { cd "${srcdir}"/${pkgname}-${pkgver} - go build + go build \ + -gcflags "all=-trimpath=${PWD}" \ + -asmflags "all=-trimpath=${PWD}" \ + -ldflags "-extldflags ${LDFLAGS}" \ + -mod vendor \ + . } package() { |