# Contributor: Gennady Feldman # Maintainer: Francesco Colista pkgname=consul-template pkgver=0.21.0 pkgrel=1 pkgdesc="Generic template rendering and notifications with Consul" url="https://www.consul.io/" arch="all" license="MPL-2.0" depends="" makedepends="go" options="!check" source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/$pkgname/archive/v$pkgver.tar.gz" build() { CGO_ENABLED="0" go build -a -v -o bin/$pkgname \ -ldflags "-s -w -X github.com/hashicorp/$pkgname/version.Name=$pkgname \ -X github.com/hashicorp/$pkgname/version.GitCommit=$pkgver" } package() { # Main binary install -m750 -D bin/$pkgname "$pkgdir"/usr/sbin/$pkgname } sha512sums="98e06f143591c6394afc8e0b622944d2584c84fddf8324d1e0c749f2c215dd06cceb942cefa8fb59ac98c07c144b57691b14ffb1fe1dbd2907c951e0b214f302 consul-template-0.21.0.tar.gz"