diff options
author | Sam Whited | 2020-01-06 09:07:50 -0500 |
---|---|---|
committer | Sam Whited | 2020-01-06 09:07:50 -0500 |
commit | c5c1597a27ba138ca0dc96ce67c6b8265d3bf077 (patch) | |
tree | 0131eca1867dfb495f5ed9b5220d40bc55c6e8f5 /PKGBUILD | |
parent | 61dcbbf0b80978d1112cb1c4213e905060965bb9 (diff) | |
download | aur-c5c1597a27ba138ca0dc96ce67c6b8265d3bf077.tar.gz |
Cleanup and minor Go build tweaks
Previously building used some old flags and environment variables that
can be simplified or are no longer necessary. This cleans those up and
makes the build lines simpler.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -2,7 +2,7 @@ # Contributor: Egor Kovetskiy <e.kovetskiy@office.ngs.ru> pkgname=go-tools-git -pkgver=v0.0.0_20190826234050_71894ab67ee3 +pkgver=v0.0.0_20200103221440_774c71fcf114 pkgrel=1 pkgdesc='Developer tools for the Go programming language' arch=(x86_64) @@ -31,18 +31,15 @@ pkgver() { prepare() { - export GO111MODULE=on rm -rf build/ mkdir -p build/ mkdir -p cache/ } build() { - export GO111MODULE=on cd "${pkgname}" GOCACHE="${srcdir}/cache" GOBIN="${srcdir}/build" go install -v -a \ - -gcflags "all=-trimpath=${PWD}" \ - -asmflags "all=-trimpath=${PWD}" \ + -trimpath \ -ldflags "-extldflags ${LDFLAGS}" \ -buildmode=pie \ ./cmd/... |