void-packages/srcpkgs/consul/template

23 lines
807 B
Bash

# Template file for 'consul'
pkgname=consul
version=1.10.1
revision=1
build_style=go
go_import_path="github.com/hashicorp/consul"
_git_commit=db839f18ba4796df77601bfe9873756ed340525d
go_ldflags="-X ${go_import_path}/version.GitCommit=${_git_commit} -X ${go_import_path}/version.GitDescribe=v${version}"
# consul has a vendor directory, but relies on replace statements in go.mod, so
# force default non-vendor behavior.
go_mod_mode=default
hostmakedepends="git"
short_desc="Distributed solution to connect and configure applications"
maintainer="iaroki <iaroki@protonmail.com>"
license="MPL-2.0"
homepage="https://www.consul.io/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=c840ba7b52df3ec6105a7febe900e52dde504a33bd1fa4e2e1985a88b6072d41
post_install() {
vlicense LICENSE
}