void-packages/srcpkgs/peshming/template

36 lines
901 B
Bash

# Template file for 'peshming'
pkgname=peshming
version=0.5.1
revision=1
wrksrc="peshming"
build_style=cargo
depends="libcap-progs"
short_desc="Prometheus exporter for background icmp pings"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="AGPL-3.0-only"
homepage="https://git.jcg.re/jcgruenhage/peshming"
distfiles="https://git.jcg.re/jcgruenhage/peshming/archive/v${version}.tar.gz"
checksum=b7b2999dbb75eb8915244cd7959a8f38f3e00f7f6e38f6c406a4d5e44aa372b4
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) broken="missing AtomicU64";;
esac
pre_build() {
export PESHMING_MAN_DIR=man
export PESHMING_COMPLETIONS_DIR=completions
}
post_install() {
vlicense LICENSE
vdoc README.md
vsconf config.toml.sample
vcompletion "completions/_peshming" zsh
vcompletion "completions/peshming.fish" fish
vcompletion "completions/peshming.bash" bash
vman "man/peshming.1"
}