[arch-commits] Commit in git-filter-repo/repos (3 files)

Jerome Leclanche jleclanche at archlinux.org
Fri Apr 17 13:11:50 UTC 2020


    Date: Friday, April 17, 2020 @ 13:11:50
  Author: jleclanche
Revision: 615590

archrelease: copy trunk to community-any

Added:
  git-filter-repo/repos/community-any/
  git-filter-repo/repos/community-any/PKGBUILD
    (from rev 615589, git-filter-repo/trunk/PKGBUILD)
  git-filter-repo/repos/community-any/version.patch
    (from rev 615589, git-filter-repo/trunk/version.patch)

---------------+
 PKGBUILD      |   40 ++++++++++++++++++++++++++++++++++++++++
 version.patch |   10 ++++++++++
 2 files changed, 50 insertions(+)

Copied: git-filter-repo/repos/community-any/PKGBUILD (from rev 615589, git-filter-repo/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-04-17 13:11:50 UTC (rev 615590)
@@ -0,0 +1,40 @@
+# Maintainer: Jerome Leclanche <jerome at leclan.ch>
+
+pkgname=git-filter-repo
+pkgver=2.26.0
+pkgrel=2
+pkgdesc="Quickly rewrite git repository history (filter-branch replacement)"
+arch=("any")
+url="https://github.com/newren/git-filter-repo"
+license=("MIT")
+depends=("git" "python")
+makedepends=("python-setuptools")
+checkdepends=("python-coverage")
+source=(
+	"$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
+	"version.patch"
+)
+sha256sums=(
+	"537ac38f49cb5bbb08b1feb7563bace54c34b4d04427e9245c2081654c3ca095"
+	"68757bead7ef4a2ff5af3b8563889564f5105cb75da9a7a7513b8aa198027d6f"
+)
+
+prepare() {
+    cd "$pkgname-$pkgver"
+    # use_scm_version in setup.py doesn't work from tarballs, inject $pkgver instead
+    patch -Np1 -i "$srcdir/version.patch"
+    sed -i "s|@PKGVER@|$pkgver|" release/setup.py
+}
+
+check() {
+    make -C "$pkgname-$pkgver" test
+}
+
+package() {
+    cd "$pkgname-$pkgver/release"
+    python setup.py install --root="$pkgdir" --optimize=1
+
+    cd ..
+    install -Dm644 Documentation/man1/git-filter-repo.1 "$pkgdir/usr/share/man/man1/git-filter-repo.1"
+    install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING COPYING.mit
+}

Copied: git-filter-repo/repos/community-any/version.patch (from rev 615589, git-filter-repo/trunk/version.patch)
===================================================================
--- community-any/version.patch	                        (rev 0)
+++ community-any/version.patch	2020-04-17 13:11:50 UTC (rev 615590)
@@ -0,0 +1,10 @@
+Index: git-filter-repo-2.26.0/release/setup.py
+===================================================================
+--- git-filter-repo-2.26.0.orig/release/setup.py
++++ git-filter-repo-2.26.0/release/setup.py
+@@ -5,4 +5,4 @@ for f in ['git-filter-repo', 'git_filter
+         os.symlink("../"+f, f)
+     except FileExistsError:
+         pass
+-setup(use_scm_version=dict(root="..", relative_to=__file__))
++setup(version='@PKGVER@')



More information about the arch-commits mailing list