[arch-commits] Commit in nextcloud-app-spreed/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Sun May 8 20:37:08 UTC 2022
Date: Sunday, May 8, 2022 @ 20:37:08
Author: dvzrv
Revision: 1196308
upgpkg: nextcloud-app-spreed 1:14.0.1-2: Rebuild to fix issues in version detection for php-interpreter.
Modified:
nextcloud-app-spreed/trunk/PKGBUILD
----------+
PKGBUILD | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-08 20:33:22 UTC (rev 1196307)
+++ PKGBUILD 2022-05-08 20:37:08 UTC (rev 1196308)
@@ -3,7 +3,7 @@
_name=spreed
pkgname=nextcloud-app-spreed
pkgver=14.0.1
-pkgrel=1
+pkgrel=2
epoch=1
pkgdesc="Video & audio-conferencing using WebRTC"
arch=(any)
@@ -27,9 +27,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
@@ -63,8 +65,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