[arch-commits] Commit in bash-bats/trunk (PKGBUILD)

Morten Linderud foxboron at gemini.archlinux.org
Sun May 15 10:21:49 UTC 2022


    Date: Sunday, May 15, 2022 @ 10:21:48
  Author: foxboron
Revision: 1207356

upgpkg: bash-bats 1.7.0-2: upgpkg: bash-bats 1.7.0-2: FS#74750 - Fix library path rewrite

Modified:
  bash-bats/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-15 09:18:26 UTC (rev 1207355)
+++ PKGBUILD	2022-05-15 10:21:48 UTC (rev 1207356)
@@ -5,7 +5,7 @@
 
 pkgname=bash-bats
 pkgver=1.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Bash Automated Testing System"
 arch=("any")
 url="https://github.com/bats-core/bats-core"
@@ -23,11 +23,10 @@
   cd "bats-core-${pkgver}"
 
   # Also rename the bats-core/ folder to bats/
-  sed -i 's/BATS_ROOT\/libexec\/bats-core\/bats/BATS_ROOT\/lib\/bats\/bats/g' bin/bats
+  sed -i 's|BATS_ROOT/libexec/bats-core/bats|BATS_ROOT/lib/bats/bats|g' bin/bats
+  sed -i 's|BATS_ROOT/lib/bats-core/|BATS_ROOT/lib/bats/|g' libexec/bats-core/*
+  sed -i 's|BATS_ROOT/lib/bats-core/|BATS_ROOT/lib/bats/|g' lib/bats-core/*
 
-  # Rename the bats-core/ folder to bats/
-  sed -i 's/BATS_ROOT\/lib\/bats-core\//BATS_ROOT\/lib\/bats\//g' libexec/bats-core/*
-
   for fn in libexec/bats-core/*; do
     install -Dm755 ${fn} \
       "${pkgdir}"/usr/lib/bats/$(basename ${fn})



More information about the arch-commits mailing list