aboutsummaryrefslogtreecommitdiffstats
path: root/testing/consul-template/APKBUILD
blob: 49dbe3f4005b61963c26a13c8854e3c598786f82 (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
34
35
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer:
pkgname=consul-template
pkgver=0.18.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="8e6e7f1711756f0d47653f2e8bef6d8d  consul-template-0.18.0.tar.gz"
sha256sums="e10afca03223aec10385e6be06e0cb5e12caa113aa5b7b151f5c399c236482e4  consul-template-0.18.0.tar.gz"
sha512sums="e9756e86295688ae7342d9d1a9e1f22f43a322414576e09f62a136bc36f647bcd40e3ceda21b630223fbb0bbbb5615e401fe2ebd640315c46782ac1a1a814203  consul-template-0.18.0.tar.gz"