summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-06-26 03:18:15 +0300
committerDimitris Kiziridis2020-06-26 03:18:15 +0300
commit0d2702fde5aacbe7922ca0a583e33c9b5576cfff (patch)
tree63f658655370f8e88c89507a5f8744bb15e68671
parentf69b93873e6ada66879162f2766c034a54992737 (diff)
downloadaur-0d2702fde5aacbe7922ca0a583e33c9b5576cfff.tar.gz
bugfix
-rw-r--r--PKGBUILD4
1 files changed, 4 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6199f1db853..ca332a68b0c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -37,8 +37,12 @@ build() {
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPATH="${srcdir}"/go
+ export PATH=$PATH:$GOPATH/bin
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ go get -d -v ./...
go build -o build ./...
+ go clean -modcache # Clean go cache
}
package() {