aboutsummaryrefslogtreecommitdiffstats
path: root/testing/consul-template/APKBUILD
blob: d8711193c96eb35323985ba693cb1db4d150da2b (plain) (blame)
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
34
35
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer:
pkgname=consul-template
pkgver=0.16.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="!strip"
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 -m750 -D bin/$pkgname "$pkgdir"/usr/sbin/$pkgname
}

md5sums="98d86a7cabbd2dfd981c8f494676903f  consul-template-0.16.0.tar.gz"
sha256sums="c20e1e54c333baa8b1e031710f71a5a533ffe079d657763567478a021344ff55  consul-template-0.16.0.tar.gz"
sha512sums="7f5f34ae7ccd5a9ce27f07a96bd6b226a78197d1455bbba76c5aab36d93090661eafc0ed513fce6930020095ab4cda799f71ed208a85ba83f540204f0d041994  consul-template-0.16.0.tar.gz"