aboutsummaryrefslogtreecommitdiffstats
path: root/testing/envconsul/APKBUILD
blob: 7856d5582e573848d3c90a7ac7e9c977860fb093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=envconsul
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"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
	export CGO_ENABLED="0"
	mkdir -p pkg/linux-${CARCH}
	go build -v -o pkg/linux-${CARCH}/$pkgname
}

check() {
	go test -timeout=30s -parallel=20 -failfast
}

package() {
	# Main binary
	install -m755 -D pkg/linux-${CARCH}/$pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="7f2fd21f0e13c291b80cb3bd24f756e56fca1195dde2cf4670fc9ac5a04980f14d3fcec4c557d85f2ec5efee67af12023cd8c4db08a02229ad6520cae848092d  envconsul-0.9.0.tar.gz"