[arch-commits] Commit in nextcloud-app-contacts/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sun May 8 20:20:54 UTC 2022


    Date: Sunday, May 8, 2022 @ 20:20:53
  Author: dvzrv
Revision: 1196302

upgpkg: nextcloud-app-contacts 4.1.0-3: Rebuild to fix issues in version detection for php-interpreter.

Modified:
  nextcloud-app-contacts/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-08 20:18:53 UTC (rev 1196301)
+++ PKGBUILD	2022-05-08 20:20:53 UTC (rev 1196302)
@@ -3,7 +3,7 @@
 pkgname=nextcloud-app-contacts
 pkgver=4.1.0
 _name=contacts
-pkgrel=2
+pkgrel=3
 pkgdesc="Contacts app for nextcloud"
 arch=('any')
 url="https://github.com/nextcloud/contacts/"
@@ -26,9 +26,11 @@
 
   _app_min_php="$(xq '.info.dependencies.php["@min-version"]' "$_name/appinfo/info.xml"| sed 's/"//g')"
   _app_max_php="$(xq '.info.dependencies.php["@max-version"]' "$_name/appinfo/info.xml"| sed 's/"//g')"
+
   if [[ $_app_max_php != 'null' ]]; then
     _app_max_php="$(echo $_app_max_php | awk -F '.' '{print $1"."$2+1}')"
   fi
+
   _system_php=""
   for _php in "${_phps[@]}"; do
     if command -v "$_php" > /dev/null; then
@@ -57,8 +59,8 @@
     exit 1
   fi
   if [[ $_app_max_php != 'null' ]]; then
-    if [[ "$(vercmp "$_php_version" "$_app_min_php" )" -lt 0 ]]; then
-      printf "%s requires php-interpreter <= %s, but %s is provided\n" $pkgname $_app_min_php $_php_version
+    if [[ "$(vercmp "$_php_version" "$_app_max_php" )" -ge 0 ]]; then
+      printf "%s requires php-interpreter < %s, but %s is provided\n" $pkgname $_app_max_php $_php_version
       exit 1
     fi
   fi



More information about the arch-commits mailing list