28 lines
806 B
Bash
28 lines
806 B
Bash
# Template file for 'nomad'
|
|
pkgname=nomad
|
|
version=0.12.5
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/hashicorp/${pkgname}"
|
|
go_build_tags="ui release"
|
|
_git_commit=fce99f12a297c9f83160450bc632611877e07873
|
|
go_ldflags="-X ${go_import_path}/version.GitCommit=${_git_commit}"
|
|
hostmakedepends="git"
|
|
short_desc="Cluster scheduler designed to easily integrate into existing workflows"
|
|
maintainer="iaroki <iaroki@protonmail.com>"
|
|
license="MPL-2.0"
|
|
homepage="https://www.nomadproject.io/"
|
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
|
checksum=7fef52a2ffa81620d55d5ca73fa28ffa872acfd6a0b90a82451b2a0620f9a612
|
|
patch_args="-Np1"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) go_build_tags+=" nonvidia" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsconf dist/server.hcl
|
|
vsconf dist/client.hcl
|
|
}
|