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