# Contributor: Gennady Feldman # Maintainer: Francesco Colista pkgname=consul-template pkgver=0.19.3 pkgrel=0 pkgdesc="Generic template rendering and notifications with Consul" url="https://www.consul.io/" arch="all" license="MPL-2.0" depends="" makedepends="go" options="!strip !check" 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" GOPATH="$builddir" go build -v -o bin/$pkgname } package() { cd "$builddir" # Main binary install -m750 -D bin/$pkgname "$pkgdir"/usr/sbin/$pkgname } sha512sums="72375814686ddee5378753e278b50699e53f1781d513417427e1566cdcc9c9e9fadbe145ed5793ee77253ffc5e25e98c08e809c1e67a2ea6da505f1bb0157d81 consul-template-0.19.3.tar.gz"