void-packages/srcpkgs/bat/template
2020-04-27 13:59:38 +02:00

27 lines
799 B
Bash

# Template file for 'bat'
pkgname=bat
version=0.15.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=702b330d2938426679b3b0d50334b1518b4fb1d779220f2e32e68dfa1bb9fc0f
pre_build() {
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}"
export CC_${RUST_BUILD//-/_}="${BUILD_CC}"
}
post_install() {
local manpage
vlicense LICENSE-MIT
vdoc README.md
# The manual page is hidden somewhere deep in the build tree
manpage=$(find ${wrksrc}/target -name bat.1)
vman ${manpage}
}