void-packages/srcpkgs/delta/template

27 lines
808 B
Bash

# Template file for 'delta'
pkgname=delta
version=0.18.0
revision=1
build_style=cargo
build_helper=qemu
# https://github.com/dandavison/delta/issues/1637
make_check_args="-- --test-threads=1"
hostmakedepends="pkg-config"
makedepends="libgit2-devel oniguruma-devel"
checkdepends="git"
short_desc="Syntax-highlighting pager for git"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="MIT"
homepage="https://github.com/dandavison/delta"
distfiles="https://github.com/dandavison/delta/archive/refs/tags/${version}.tar.gz"
checksum=1cdd61373b34cd6d20a0184efc9e445939f743d92b2b89a83ec787b4cf93f5a4
post_install() {
vlicense LICENSE
for _shell in bash fish zsh; do
vtargetrun ${DESTDIR}/usr/bin/delta --generate-completion ${_shell} > delta.${_shell}
vcompletion delta.${_shell} ${_shell}
done
}