void-packages/srcpkgs/nomad/template
2019-11-06 11:10:05 +01:00

27 lines
806 B
Bash

# Template file for 'nomad'
pkgname=nomad
version=0.10.1
revision=1
build_style=go
go_import_path="github.com/hashicorp/${pkgname}"
go_build_tags="ui release"
_git_commit=6a8b80b619aa98df8dbd94f1cb9d3f4614f2cb3d
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=034ddcab650a40ac6b5e037caa63da38429c299f5393de6f63573ad620086aa9
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
}