diff options
author | frealgagu | 2020-06-19 16:45:17 -0500 |
---|---|---|
committer | frealgagu | 2020-06-19 16:45:17 -0500 |
commit | 28033d9392c3527ea6842b76631946e2cfa0304d (patch) | |
tree | c0e4ff40fbb7fac725fb1d6c1e5e84a571f9d209 | |
parent | cfa5a07e84f87e41a6ca040a325bfae97219e65f (diff) | |
download | aur-28033d9392c3527ea6842b76631946e2cfa0304d.tar.gz |
Using the new go package guidelines.
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -86,10 +86,17 @@ prepare() { build() { cd "${srcdir}/gopath/src/github.com/zyedidia/${pkgname}" - GOPATH="${srcdir}/gopath" PATH="${PATH}:${GOPATH}/bin" make build-quick + export GOPATH="${srcdir}/gopath" + export PATH="${PATH}:${GOPATH}/bin" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -x -v" + make build-quick # To avoid issues deleting directories next time - GOPATH="${srcdir}/gopath" go clean --modcache + go clean --modcache } package() { |