# Contributor: Gennady Feldman # Maintainer: Francesco Colista pkgname=envconsul pkgver=0.7.3 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 GOPATH="$builddir" go build -v -o bin/$pkgname } package() { cd "$builddir" # Main binary install -m755 -D bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums="bfe6c4f7f371aaabdbeb01d1ed1a06cf21b7ec337c1c746227fe109138a9249a3a15de1ab00f7a0fcc8f20147b559b5b9bc87b79d135a4ddd8842d5470b318e3 envconsul-0.7.3.tar.gz"