void-packages/srcpkgs/nomad/template
Noel Cower 770e5ba3d9 nomad: update to 0.9.0.
- Updated to build new UI with yarn. Broken on i686 because yarn can't
  be built for it -- works fine when cross-compiling.

- Commit now set in version string. _git_commit must be updated to the
  version's tag alongside the version for this to be correct.

- Removed golang.org/x/crypto/blake2b version workaround.

- Includes upstream patch to disable nvidia support on musl systems.

Closes: #10766 [via git-merge-pr]
2019-04-14 22:46:38 -07:00

36 lines
1 KiB
Bash

# Template file for 'nomad'
pkgname=nomad
version=0.9.0
revision=1
build_style=go
go_import_path="github.com/hashicorp/nomad"
go_build_tags="ui"
_git_commit=28e768721992df5097203eea6e2b247abd56ca6f
go_ldflags="-X github.com/hashicorp/nomad/version.GitCommit=${_git_commit}"
hostmakedepends="git nodejs-lts python yarn"
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=fb6a0afd6895540dd5e18c878421c39e2a2759e90af8eb771c84802d082475df
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
pre_build() {
local depbin="${wrksrc}/_build-depbin"
GOOS= GOARCH= CGO_ENABLED=0 PATH="$depbin:$PATH" GOBIN="$depbin" make deps ember-dist static-assets
}
post_install() {
vlicense LICENSE
vsconf dist/server.hcl
vsconf dist/client.hcl
}