mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-01 10:31:50 +02:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# 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"
|