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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 19:38:47 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:38:47
  Author: foutrelis
Revision: 753560

archrelease: copy trunk to community-staging-any

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

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

Copied: git-filter-repo/repos/community-staging-any/PKGBUILD (from rev 753559, git-filter-repo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 19:38:47 UTC (rev 753560)
@@ -0,0 +1,40 @@
+# Maintainer: Jerome Leclanche <jerome at leclan.ch>
+
+pkgname=git-filter-repo
+pkgver=2.27.1
+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=(
+	"48d0bf96c1b0fdf56bf25bf1cef488f4ec1e872ebf0dddc27fd4f91c8615231f"
+	"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-staging-any/version.patch (from rev 753559, git-filter-repo/trunk/version.patch)
===================================================================
--- community-staging-any/version.patch	                        (rev 0)
+++ community-staging-any/version.patch	2020-11-12 19:38:47 UTC (rev 753560)
@@ -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