27 lines
808 B
Bash
27 lines
808 B
Bash
# Template file for 'delta'
|
|
pkgname=delta
|
|
version=0.18.2
|
|
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=64717c3b3335b44a252b8e99713e080cbf7944308b96252bc175317b10004f02
|
|
|
|
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
|
|
}
|