blob: 9b23edf51d12734744672687255befb6c9d19e5a (
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.2
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/envconsul/archive/v$pkgver.tar.gz"
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="4cac32a3131aebbc7b34aff5fbcba35960d5af5de0b58cffcb73f2faedcc769bb00580cb7500c93d196bc30ac0a69aca93297971548fd4b1e824a48da0152893 envconsul-0.9.2.tar.gz"
|