void-packages/srcpkgs/nomad/template

30 lines
912 B
Bash

# Template file for 'nomad'
pkgname=nomad
version=0.8.7
revision=1
build_style=go
go_import_path="github.com/hashicorp/nomad"
hostmakedepends="git govendor"
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=f74eac627de69190e586358b1956573a0ae1a40d0755ecdee163016949f9c7fe
patch_args="-Np1"
pre_build() {
# NOTE: This can probably be removed in nomad 0.9.x if Hashicorp updates
# their golang.org/x/crypto/blake2b dependency.
cd "$GOSRCPATH"
govendor fetch golang.org/x/sys/cpu@1b2967e3c290b7c545b3db0deeda16e9be4f98a2
govendor fetch golang.org/x/crypto/blake2b@de0752318171da717af4ce24d0a2e8626afaeb11
cd -
}
post_install() {
vlicense LICENSE
vsconf dist/server.hcl
vsconf dist/client.hcl
}