void-packages/srcpkgs/delta/template

27 lines
808 B
Bash

# Template file for 'delta'
pkgname=delta
version=0.17.0
revision=2
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=1abd21587bcc1f2ef0cd342784ce990da9978bc345578e45506419e0952de714
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
}