diff options
Diffstat (limited to 'testing/docker-volume-local-persist/APKBUILD')
-rw-r--r-- | testing/docker-volume-local-persist/APKBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/testing/docker-volume-local-persist/APKBUILD b/testing/docker-volume-local-persist/APKBUILD index 0eb11efba94..a81f5ad51e2 100644 --- a/testing/docker-volume-local-persist/APKBUILD +++ b/testing/docker-volume-local-persist/APKBUILD @@ -8,7 +8,6 @@ arch="all" license="MIT" depends="docker" makedepends="go glide" -install="" subpackages="$pkgname-openrc" source=" docker-local-persist-$pkgver.tar.gz::https://github.com/MatchbookLab/local-persist/archive/v$pkgver.tar.gz @@ -16,12 +15,15 @@ source=" " builddir="$srcdir/local-persist-$pkgver" +export GOPATH="$startdir" +export GOCACHE="$srcdir/go-cache" +export GOTMPDIR="$srcdir" +export GOMODCACHE="$srcdir/go" + build() { - cd "$builddir" - export GOPATH="$startdir" export GO111MODULE=off glide install --skip-test - go build -v -ldflags "-s -w" \ + go build -v \ -o bin/local-persist } @@ -32,5 +34,7 @@ package() { "$pkgdir"/etc/init.d/docker-volume-local-persist } -sha512sums="43a061c937c84eaab817dc62e4be5adfee960e357a2eea504e87c8e5fda32f5a835dc6d145f7d787f4907cd592a04c0159455d8d28d40e158f5a93c4e4fc060a docker-local-persist-1.3.0.tar.gz -806b53e97b52d7ec2517cd978ddce6de14321519a64a4f309e3ea233f77b0c6cb1c9ec6bd9431ebe6d1eef83c7fe6ab2b8720bc4e552b64f3741a1fcd0df4bac docker-volume-local-persist.initd" +sha512sums=" +43a061c937c84eaab817dc62e4be5adfee960e357a2eea504e87c8e5fda32f5a835dc6d145f7d787f4907cd592a04c0159455d8d28d40e158f5a93c4e4fc060a docker-local-persist-1.3.0.tar.gz +806b53e97b52d7ec2517cd978ddce6de14321519a64a4f309e3ea233f77b0c6cb1c9ec6bd9431ebe6d1eef83c7fe6ab2b8720bc4e552b64f3741a1fcd0df4bac docker-volume-local-persist.initd +" |