void-packages/srcpkgs/git-absorb/template

24 lines
736 B
Bash

# Template file for 'git-absorb'
pkgname=git-absorb
version=0.6.9
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="libgit2-devel"
short_desc="Like git commit --fixup, but automatic"
maintainer="Dominic Monroe <monroef4@googlemail.com>"
license="BSD-3-Clause"
homepage="https://github.com/tummychow/git-absorb"
distfiles="https://github.com/tummychow/git-absorb/archive/refs/tags/${version}.tar.gz"
checksum=feaee35e6771d66d6d895a69d59d812cfbcabbecaa70ece64f87528a8c3c2fb5
post_install() {
vlicense LICENSE.md
vman Documentation/git-absorb.1
for sh in bash fish zsh; do
vtargetrun ${DESTDIR}/usr/bin/git-absorb --gen-completions $sh > git-absorb.$sh
vcompletion git-absorb.$sh $sh
done
}