diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-08-20 16:30:50 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-08-20 16:30:55 +0000 |
commit | 5a62495fc7f0be9849635f21101272329818045f (patch) | |
tree | abe27e72e9b8b551c635d589bec40903f5ad55fb /testing/envconsul/APKBUILD | |
parent | 777e88861de21e331f2df8b6a2e552ebf03abdef (diff) | |
download | aports-5a62495fc7f0be9849635f21101272329818045f.tar.bz2 aports-5a62495fc7f0be9849635f21101272329818045f.tar.xz |
testing/envconsul: upgrade to 0.9.0
Diffstat (limited to 'testing/envconsul/APKBUILD')
-rw-r--r-- | testing/envconsul/APKBUILD | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/testing/envconsul/APKBUILD b/testing/envconsul/APKBUILD index 5e92c5692a..7856d5582e 100644 --- a/testing/envconsul/APKBUILD +++ b/testing/envconsul/APKBUILD @@ -1,32 +1,28 @@ # Contributor: Gennady Feldman <gena01@gmail.com> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=envconsul -pkgver=0.8.0 -pkgrel=1 +pkgver=0.9.0 +pkgrel=0 pkgdesc="Read and set environmental variables for processes from Consul." url="https://www.consul.io/" arch="all" license="MPL-2.0" -depends="" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" - build() { - cd "$builddir" - - mkdir -p "$builddir/src/github.com/hashicorp" - ln -s "$builddir" "$builddir/src/github.com/hashicorp/$pkgname" - cd "$builddir/src/github.com/hashicorp/$pkgname" || return 1 + export CGO_ENABLED="0" + mkdir -p pkg/linux-${CARCH} + go build -v -o pkg/linux-${CARCH}/$pkgname +} - GOPATH="$builddir" go build -v -o bin/$pkgname +check() { + go test -timeout=30s -parallel=20 -failfast } package() { - cd "$builddir" - # Main binary - install -m755 -D bin/$pkgname "$pkgdir"/usr/bin/$pkgname + install -m755 -D pkg/linux-${CARCH}/$pkgname "$pkgdir"/usr/bin/$pkgname } -sha512sums="eacaa8ca0ae524f0f1abc178cc51db111220fe28f87717ff584d31b09daebbfd968565403b3d51ba2ebbb6b20fb7ffdceeb288521f8ef88e681c36b4d4884c96 envconsul-0.8.0.tar.gz" +sha512sums="7f2fd21f0e13c291b80cb3bd24f756e56fca1195dde2cf4670fc9ac5a04980f14d3fcec4c557d85f2ec5efee67af12023cd8c4db08a02229ad6520cae848092d envconsul-0.9.0.tar.gz" |