summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-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() {