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

Antonio Rojas arojas at gemini.archlinux.org
Sun Aug 28 22:17:26 UTC 2022


    Date: Sunday, August 28, 2022 @ 22:17:25
  Author: arojas
Revision: 1285143

upgpkg: gap 4.12.0-2: Fix provides

Modified:
  gap/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-28 22:06:09 UTC (rev 1285142)
+++ PKGBUILD	2022-08-28 22:17:25 UTC (rev 1285143)
@@ -5,7 +5,7 @@
 pkgbase=gap
 pkgname=(gap gap-doc gap-packages)
 pkgver=4.12.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Groups, Algorithms, Programming: a system for computational discrete algebra'
 arch=(x86_64)
 url='https://www.gap-system.org/'
@@ -83,8 +83,8 @@
 
 # Add provides for bundled packages
   for _f in "$pkgdir"/usr/lib/gap/pkg/*/PackageInfo.g; do
-    _pkg=$(cat $_f | grep PackageName | tr '\n' ' ' | cut -d '"' -f2 | tr '[:upper:]' '[:lower:]')
-    _ver=$(cat $_f | grep Version | tr '\n' ' ' | cut -d '"' -f2)
+    _pkg=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep PackageName | tr '\n' ' ' | cut -d '"' -f2 | tr '[:upper:]' '[:lower:]')
+    _ver=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep Version | tr '\n' ' ' | cut -d '"' -f2)
     _prov="gap-$_pkg=${_ver/-/.}"
     provides+=($_prov)
   done
@@ -139,8 +139,8 @@
 
 # Add provides for bundled packages
   for _f in "$pkgdir"/usr/lib/gap/pkg/*/PackageInfo.g; do
-    _pkg=$(cat $_f | grep PackageName | tr '\n' ' ' | cut -d '"' -f2 | tr '[:upper:]' '[:lower:]')
-    _ver=$(cat $_f | grep Version | tr '\n' ' ' | cut -d '"' -f2)
+    _pkg=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep PackageName | tr '\n' ' ' | cut -d '"' -f2 | tr '[:upper:]' '[:lower:]')
+    _ver=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep Version | tr '\n' ' ' | cut -d '"' -f2)
     _prov="gap-$_pkg=${_ver/-/.}"
     provides+=($_prov)
   done



More information about the arch-commits mailing list