void-packages/srcpkgs/bat/template

25 lines
675 B
Bash

# Template file for 'bat'
pkgname=bat
version=0.13.0
revision=1
build_style=cargo
hostmakedepends="cmake llvm"
makedepends="libcurl-devel libssh2-devel oniguruma-devel"
short_desc="Cat(1) clone with syntax highlighting and Git integration"
maintainer="John <johnz@posteo.net>"
license="Apache-2.0, MIT"
homepage="https://github.com/sharkdp/bat"
distfiles="https://github.com/sharkdp/bat/archive/v${version}.tar.gz"
checksum=f4aee370013e2a3bc84c405738ed0ab6e334d3a9f22c18031a7ea008cd5abd2a
pre_build() {
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}"
export CC_${RUST_BUILD//-/_}="${BUILD_CC}"
}
post_install() {
vlicense LICENSE-MIT
vdoc README.md
vman doc/bat.1
}