diff --git a/srcpkgs/git-filter-repo/template b/srcpkgs/git-filter-repo/template new file mode 100644 index 00000000000..171603bc7f9 --- /dev/null +++ b/srcpkgs/git-filter-repo/template @@ -0,0 +1,23 @@ +# Template file for 'git-filter-repo' +pkgname=git-filter-repo +version=2.24.0 +revision=1 +archs=noarch +pycompile_module="git_filter_repo" +depends="git python3" +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=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 +}