# Template file for 'nomad'
pkgname=nomad
version=1.1.3
revision=1
build_style=go
go_import_path="github.com/hashicorp/nomad"
go_build_tags="ui release"
_git_commit=5e94e4c06cdc18916e9c0d5f0e8c2130d6cfd2ac
go_ldflags="-X ${go_import_path}/version.GitCommit=${_git_commit}"
hostmakedepends="git"
short_desc="Cluster scheduler designed to easily integrate into existing workflows"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MPL-2.0"
homepage="https://www.nomadproject.io/"
distfiles="https://github.com/hashicorp/nomad/archive/v${version}.tar.gz"
checksum=18eb2b7fcd4d32952546b3d8b052e755dedc4c63e36527404db6abdce01b197d

case "$XBPS_TARGET_MACHINE" in
	*-musl) go_build_tags+=" nonvidia" ;;
esac

post_install() {
	vlicense LICENSE
}
