mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 07:02:29 +01:00
34 lines
979 B
Plaintext
34 lines
979 B
Plaintext
# Contributor: Gennady Feldman <gena01@gmail.com>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=consul-template
|
|
pkgver=0.20.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"
|
|
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="a09ff31ddd7d11d78e8c2afcc9a63ab4458cc9feacc02fbf95a30c82b9ad58526c6e6575f5b3ddb21d0dd720687b9ee135bacdbe761f1b5f95592a3e3e74c170 consul-template-0.20.0.tar.gz"
|