# Template file for 'git-filter-repo'
pkgname=git-filter-repo
version=2.24.0
revision=2
archs=noarch
pycompile_module="git_filter_repo"
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=92188d3c44b9ff0dd40dfeed72859e0a088f775c12fb24c4e3e27a8064cfcc84

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
}
