void-packages/srcpkgs/git-extras/template

26 lines
773 B
Bash

# Template file for 'git-extras'
pkgname=git-extras
version=7.2.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/main/History.md"
distfiles="https://github.com/tj/git-extras/archive/refs/tags/${version}.tar.gz"
checksum=f570f19b9e3407e909cb98d0536c6e0b54987404a0a053903a54b81680c347f1
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
}