Merge pull request #2881 from J-M0/git-filter-repo

git-filter-repo 2.34.0 (new package)
This commit is contained in:
Christoph Reiter 2022-03-05 15:44:19 +01:00 committed by GitHub
commit c4a062dffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
git-filter-repo/PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
# Maintainer: James Morris <jamesmorris2@gmail.com>
pkgname=git-filter-repo
pkgver=2.34.0
pkgrel=1
pkgdesc='Quickly rewrite git repository history (filter-branch replacement)'
arch=('any')
url='https://github.com/newren/git-filter-repo'
license=('MIT')
depends=('git' 'python')
source=("https://github.com/newren/git-filter-repo/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz")
noextract=("${pkgname}-${pkgver}.tar.xz")
sha256sums=('b1bf46af1e6a91a54056d0254e480803db8e40f631336c559a1a94d2a08389c4')
prepare() {
# tar chokes on a symlink in the contrib directory
# We're not installing anything from there, so just don't bother with it
bsdtar -x -f "${pkgname}-${pkgver}.tar.xz" --exclude '*contrib*'
cd "${pkgname}-${pkgver}"
sed -i 's|^#!/usr/bin/env python3$|#!/usr/bin/python3|' git-filter-repo
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm0755 git-filter-repo "${pkgdir}/usr/bin/git-filter-repo"
install -Dm0644 Documentation/man1/git-filter-repo.1 "${pkgdir}/usr/share/man/man1/git-filter-repo.1"
install -Dm0644 Documentation/html/git-filter-repo.html "${pkgdir}/usr/share/doc/git/html/git-filter-repo.html"
}