void-packages/srcpkgs/chronograf/template

46 lines
1.5 KiB
Bash

# Template file for 'chronograf'
pkgname=chronograf
version=1.3.10.0
revision=1
_commit=2eca970
build_style="go"
nocross=1
go_import_path="github.com/influxdata/${pkgname}"
build_wrksrc="go/src/${go_import_path}"
hostmakedepends="git nodejs yarn"
system_accounts="_chronograf"
_chronograf_homedir="/var/lib/${pkgname}"
make_dirs="${_chronograf_homedir} 0755 _chronograf _chronograf"
short_desc="Open source monitoring and visualization UI for the TICK stack"
maintainer="Nicklaus McClendon <nicklaus@kulinacs.com>"
license="MIT"
homepage="https://www.influxdata.com/time-series-platform/chronograf/"
distfiles="https://github.com/influxdata/${pkgname}/archive/${version}.tar.gz"
checksum=73a82a1a9ae4c3f734f0469f2ccab1066fef526c5574c0d38d67c2afa7889811
# missing python dep and errors linking v8
broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/6213/steps/shell_3/logs/stdio"
do_extract() {
mkdir -p ${wrksrc}/${build_wrksrc}
tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.tar.gz --strip-components=1 -C ${wrksrc}/${build_wrksrc}
}
do_build() {
export GOPATH="/builddir/${pkgname}-${version}/go/"
export PATH=$PATH:$(go env GOPATH)/bin
make VERSION=${version} COMMIT=${_commit}
go install github.com/influxdata/chronograf/cmd/chronograf
}
do_install() {
vbin /builddir/${pkgname}-${version}/go/bin/chronograf
}
post_install() {
vlicense LICENSE
vsv chronograf
vmkdir /usr/share/chronograf/
vcopy ${wrksrc}/${build_wrksrc}/canned /usr/share/chronograf/canned
}