void-packages/srcpkgs/git-extras/template

26 lines
775 B
Bash

# Template file for 'git-extras'
pkgname=git-extras
version=6.5.0
revision=1
build_style=gnu-makefile
depends="bash git"
short_desc="Little git extras"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://github.com/tj/git-extras"
changelog="https://raw.githubusercontent.com/tj/git-extras/master/History.md"
distfiles="https://github.com/tj/git-extras/archive/refs/tags/${version}.tar.gz"
checksum=eace7a0659749c72abf1cee68c03ea0a77715870d5e321c729e4a231ee359b61
post_patch() {
vsed -e 's|$(SYSCONFDIR)/bash-completion|/usr/share/bash-completion|' -i Makefile
rm -f check_dependencies.sh
ln -s /bin/true check_dependencies.sh
}
post_install() {
vlicense LICENSE
vcompletion etc/git-extras.fish fish
vcompletion etc/git-extras-completion.zsh zsh
}