aboutsummaryrefslogtreecommitdiffstats
path: root/testing/consul-template/APKBUILD
blob: 8b97b963e833b57d0e01aa1558f7f0929d577cf0 (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
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=consul-template
pkgver=0.21.0
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="!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"