summaryrefslogtreecommitdiff
path: root/testing/dstask/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/dstask/APKBUILD')
-rw-r--r--testing/dstask/APKBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/dstask/APKBUILD b/testing/dstask/APKBUILD
index fb9aa8e4153..c58699073e3 100644
--- a/testing/dstask/APKBUILD
+++ b/testing/dstask/APKBUILD
@@ -17,13 +17,16 @@ source="https://github.com/naggie/dstask/archive/v$pkgver/dstask-$pkgver.tar.gz
integration-tests.patch
"
-export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -modcacherw"
+export GOCACHE="$srcdir/go-cache"
+export GOTMPDIR="$srcdir"
+export GOMODCACHE="$srcdir/go"
+
build() {
_git_commit=$(zcat "$srcdir"/dstask-$pkgver.tar.gz | git get-tar-commit-id)
_build_date=$(date -u "+%Y-%m-%dT%TZ" ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH})
- _ldflags="-s -w
+ _ldflags="
-X github.com/naggie/dstask.GIT_COMMIT=$_git_commit
-X github.com/naggie/dstask.VERSION=$pkgver-r$pkgrel
-X github.com/naggie/dstask.BUILD_DATE=$_build_date