summaryrefslogtreecommitdiff
path: root/testing/kopia/APKBUILD
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-08-04 10:32:56 +0000
committerpsykose <alice@ayaya.dev>2022-08-04 12:33:04 +0200
commitd9e95826c086ba4b679198c1d458746d48ef8b3e (patch)
treedc0d717c8c3a045ec8b88fda24b5019b342782d4 /testing/kopia/APKBUILD
parentc1b3caf678a639c1f902aad6dc4b8f0a1d600e97 (diff)
downloadaports-d9e95826c086ba4b679198c1d458746d48ef8b3e.zip
testing/*: add gocache vars
see cffbff77e1cf386d901febec4a35b2a905065514
Diffstat (limited to 'testing/kopia/APKBUILD')
-rw-r--r--testing/kopia/APKBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/kopia/APKBUILD b/testing/kopia/APKBUILD
index eb367f326dd..68d5a01591e 100644
--- a/testing/kopia/APKBUILD
+++ b/testing/kopia/APKBUILD
@@ -14,12 +14,14 @@ source="https://github.com/kopia/kopia/archive/v$pkgver/kopia-$pkgver.tar.gz
skip-docker-tests.patch
"
+export GOCACHE="$srcdir/go-cache"
+export GOTMPDIR="$srcdir"
+export GOMODCACHE="$srcdir/go"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
-export GOPATH="$srcdir"
export CGO_ENABLED=0
build() {
- go build -ldflags "-s -w -X github.com/kopia/kopia/repo.BuildVersion=$pkgver"
+ go build -ldflags "-X github.com/kopia/kopia/repo.BuildVersion=$pkgver"
./kopia --completion-script-bash > $pkgname.bash
./kopia --completion-script-zsh > $pkgname.zsh