# Template file for 'git-absorb' pkgname=git-absorb version=0.7.0 revision=1 build_style=cargo build_helper="qemu" hostmakedepends="pkg-config asciidoc" makedepends="libgit2-1.9-devel" short_desc="Like git commit --fixup, but automatic" maintainer="icp " 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=65f5b80bcb726a0c40eeda94ccb47fce7f3fc4ed16021465196a37b907083eb8 make_check_pre="env PATH=/usr/libexec/chroot-git:${PATH}" post_install() { vlicense LICENSE.md a2x -L -d manpage -f manpage Documentation/git-absorb.adoc --attribute man-version=${version} 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 }