void-packages/srcpkgs/nomad/template
Noel Cower b950c6be92 nomad: update to 0.9.1.
- Remove asset build. Not needed anymore since these are in the source
  archives.
- Make template more similar to consul since these are often paired.
- Add missing release tag.
2019-05-23 12:11:39 +02:00

31 lines
878 B
Bash

# Template file for 'nomad'
pkgname=nomad
version=0.9.1
revision=1
build_style=go
go_import_path="github.com/hashicorp/${pkgname}"
go_build_tags="ui release"
_git_commit=23c4597dbb6d1d46e020301b0f63db5cff80d3f0
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=19da9f2bcc4c521b777a7889ed2c1a28182d2048e134a56099ff54e9fb6c2347
patch_args="-Np1"
case "$XBPS_MACHINE" in
i686*) broken="yarn is broken on i686" ;;
esac
case "$XBPS_TARGET_MACHINE" in
*-musl) go_build_tags+=" nonvidia" ;;
esac
post_install() {
vlicense LICENSE
vsconf dist/server.hcl
vsconf dist/client.hcl
}