aboutsummaryrefslogtreecommitdiffstats
path: root/testing/consul-template/APKBUILD
blob: c9dc8108a356f2548c2474e0bd2a784bd0f16c9b (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
29
30
31
32
33
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=consul-template
pkgver=0.19.4
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="b9ccfcdbc2a7bfb040de25a7f78d38c4098793d4de4f4be61f339f1bae0f38b32da008147ac1ffb449e7f78ecc8d47553c6cd02e29ce37bd30b38009fa2e6deb  consul-template-0.19.4.tar.gz"