void-packages/srcpkgs/git-filter-repo/template

23 lines
807 B
Bash

# Template file for 'git-filter-repo'
pkgname=git-filter-repo
version=2.26.0
revision=1
archs=noarch
depends="git python3"
short_desc="Versatile tool for rewriting git history"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="MIT"
homepage="https://github.com/newren/git-filter-repo/"
distfiles="https://github.com/newren/git-filter-repo/releases/download/v${version}/git-filter-repo-${version}.tar.xz"
checksum=537ac38f49cb5bbb08b1feb7563bace54c34b4d04427e9245c2081654c3ca095
do_install() {
vlicense COPYING.mit
vinstall git-filter-repo 0755 "${py3_sitelib}" git_filter_repo.py
vmkdir usr/libexec/git-core
ln -s "/${py3_sitelib}/git_filter_repo.py" \
"${DESTDIR}/usr/libexec/git-core/git-filter-repo"
vman Documentation/man1/git-filter-repo.1
vdoc Documentation/html/git-filter-repo.html
}