# Template file for 'git-filter-repo' pkgname=git-filter-repo version=2.27.0 revision=1 archs=noarch depends="git python3" checkdepends="git python3 perl rsync dos2unix" short_desc="Versatile tool for rewriting git history" maintainer="Cameron Nemo " 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=41edbb53eb83fce292eb28f044002dc772849ce72053c74715e882c8f1053eef do_check() { cd t for f in ./t[0-9][0-9][0-9][0-9]-*.sh do echo "Running $f" $f done } 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 }