[arch-commits] Commit in nextcloud-app-calendar/repos/community-any (2 files)

David Runge dvzrv at gemini.archlinux.org
Tue Aug 23 15:28:23 UTC 2022


    Date: Tuesday, August 23, 2022 @ 15:28:23
  Author: dvzrv
Revision: 1275467

archrelease: copy trunk to community-any

Added:
  nextcloud-app-calendar/repos/community-any/PKGBUILD
    (from rev 1275466, nextcloud-app-calendar/trunk/PKGBUILD)
Deleted:
  nextcloud-app-calendar/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  128 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 64 insertions(+), 64 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-23 15:28:14 UTC (rev 1275466)
+++ PKGBUILD	2022-08-23 15:28:23 UTC (rev 1275467)
@@ -1,64 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=nextcloud-app-calendar
-_name=calendar
-epoch=1
-pkgver=3.4.2
-pkgrel=1
-pkgdesc="Calendar app for nextcloud"
-arch=(any)
-url="https://github.com/nextcloud/calendar/"
-license=(AGPL)
-makedepends=(nextcloud yq)
-groups=(nextcloud-apps)
-options=('!strip')
-source=($pkgname-$pkgver.tar.gz::https://github.com/nextcloud-releases/calendar/releases/download/v$pkgver/$_name-v$pkgver.tar.gz)
-sha256sums=('25c9cc5086e00fa50a33958f529daba4380ddd25ce8daaa562a577028544d07a')
-b2sums=('853b8f85757e75bea1dd8db416d62579b3492bc6848bc13bef1d3224c1adb7498404932ba260ed694f10e484a7199cf134b739ccae266bc57df95f2b55ea7f73')
-
-# BEGIN boilerplate nextcloud app version clamping, see also other packages in group
-# 1. Call respective function helpers in check() and package() *after* cd'ing to the source directory
-# 2. Add makedepends+=(nextcloud yq)
-_phps=(php7 php)
-_get_supported_ranges() {
-  _app_min_nextcloud="$(< appinfo/info.xml xq -r '.info.dependencies.nextcloud["@min-version"] | values')"
-  _app_max_nextcloud="$(< appinfo/info.xml xq -r '.info.dependencies.nextcloud["@max-version"] | values | tonumber | .+1')"
-  _app_min_php="$(< appinfo/info.xml xq -r '.info.dependencies.php["@min-version"] | values')"
-  _app_max_php="$(< appinfo/info.xml xq -r '.info.dependencies.php["@max-version"] | values | tonumber | .+0.1')"
-}
-_unsupported_range() {
-  printf "%s requires %s %s, but %s %s is provided.\n" "$pkgname" "$1" "$2" "$1" "$3"
-  exit 1
-}
-_nextcloud_app_check() {
-  _get_supported_ranges
-  for _php in "${_phps[@]}"; do command -v "$_php" > /dev/null && break; done
-  local _nextcloud_ver="$("$_php" <(cat /usr/share/webapps/nextcloud/version.php; echo 'print($OC_VersionString);'))"
-  local _php_ver="$("$_php" -r 'print(phpversion());')"
-  [[ "$(vercmp "${_app_min_nextcloud:-0}" "$_nextcloud_ver")" -le 0 ]] || \
-    _unsupported_range nextcloud "=> $_app_min_nextcloud" "$_nextcloud_ver"
-  [[ "$(vercmp "${_app_max_nextcloud:-999}" "$_nextcloud_ver")" -gt 0 ]] || \
-    _unsupported_range nextcloud "< $_app_max_nextcloud" "$_nextcloud_ver"
-  [[ "$(vercmp "${_app_min_php:-0}" "$_php_ver")" -le 0 ]] || \
-    _unsupported_range php ">= $_app_min_php" "$_php_ver"
-  [[ "$(vercmp "${_app_max_php:-999}" "$_php_ver")" -gt 0 ]] || \
-    _unsupported_range php "< $_app_max_php" "$_php_ver"
-}
-_nextcloud_app_package() {
-  _get_supported_ranges
-  depends+=("nextcloud>=${_app_min_nextcloud:-0}" "nextcloud<${_app_max_nextcloud:-999}")
-  depends+=("php-interpreter${_app_min_php:+>=$_app_min_php}" ${_app_max_php:+"php-interpreter<$_app_max_php"})
-}
-# END boilerplate nextcloud app version clamping
-
-check() {
-  cd $_name
-  _nextcloud_app_check
-}
-
-package() {
-  install -vdm 755 "$pkgdir/usr/share/webapps/nextcloud/apps/"
-  cp -av $_name "$pkgdir/usr/share/webapps/nextcloud/apps/"
-  cd $_name
-  _nextcloud_app_package
-}

Copied: nextcloud-app-calendar/repos/community-any/PKGBUILD (from rev 1275466, nextcloud-app-calendar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-23 15:28:23 UTC (rev 1275467)
@@ -0,0 +1,64 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=nextcloud-app-calendar
+_name=calendar
+epoch=1
+pkgver=3.4.3
+pkgrel=1
+pkgdesc="Calendar app for nextcloud"
+arch=(any)
+url="https://github.com/nextcloud/calendar/"
+license=(AGPL)
+makedepends=(nextcloud yq)
+groups=(nextcloud-apps)
+options=('!strip')
+source=($pkgname-$pkgver.tar.gz::https://github.com/nextcloud-releases/calendar/releases/download/v$pkgver/$_name-v$pkgver.tar.gz)
+sha256sums=('50de2e96d9b4b60a6de2e1bc0da0f9b4b5c321f48047661ee841c5a74fa6eb3b')
+b2sums=('9b37e630913b7a3402efb4e5c6508218680ecfd5c30cd6c85c4e9a1cc54caa787c657d541c658ee4be37d360d30040ccd8ff068e18064065e6456bed9276a33e')
+
+# BEGIN boilerplate nextcloud app version clamping, see also other packages in group
+# 1. Call respective function helpers in check() and package() *after* cd'ing to the source directory
+# 2. Add makedepends+=(nextcloud yq)
+_phps=(php7 php)
+_get_supported_ranges() {
+  _app_min_nextcloud="$(< appinfo/info.xml xq -r '.info.dependencies.nextcloud["@min-version"] | values')"
+  _app_max_nextcloud="$(< appinfo/info.xml xq -r '.info.dependencies.nextcloud["@max-version"] | values | tonumber | .+1')"
+  _app_min_php="$(< appinfo/info.xml xq -r '.info.dependencies.php["@min-version"] | values')"
+  _app_max_php="$(< appinfo/info.xml xq -r '.info.dependencies.php["@max-version"] | values | tonumber | .+0.1')"
+}
+_unsupported_range() {
+  printf "%s requires %s %s, but %s %s is provided.\n" "$pkgname" "$1" "$2" "$1" "$3"
+  exit 1
+}
+_nextcloud_app_check() {
+  _get_supported_ranges
+  for _php in "${_phps[@]}"; do command -v "$_php" > /dev/null && break; done
+  local _nextcloud_ver="$("$_php" <(cat /usr/share/webapps/nextcloud/version.php; echo 'print($OC_VersionString);'))"
+  local _php_ver="$("$_php" -r 'print(phpversion());')"
+  [[ "$(vercmp "${_app_min_nextcloud:-0}" "$_nextcloud_ver")" -le 0 ]] || \
+    _unsupported_range nextcloud "=> $_app_min_nextcloud" "$_nextcloud_ver"
+  [[ "$(vercmp "${_app_max_nextcloud:-999}" "$_nextcloud_ver")" -gt 0 ]] || \
+    _unsupported_range nextcloud "< $_app_max_nextcloud" "$_nextcloud_ver"
+  [[ "$(vercmp "${_app_min_php:-0}" "$_php_ver")" -le 0 ]] || \
+    _unsupported_range php ">= $_app_min_php" "$_php_ver"
+  [[ "$(vercmp "${_app_max_php:-999}" "$_php_ver")" -gt 0 ]] || \
+    _unsupported_range php "< $_app_max_php" "$_php_ver"
+}
+_nextcloud_app_package() {
+  _get_supported_ranges
+  depends+=("nextcloud>=${_app_min_nextcloud:-0}" "nextcloud<${_app_max_nextcloud:-999}")
+  depends+=("php-interpreter${_app_min_php:+>=$_app_min_php}" ${_app_max_php:+"php-interpreter<$_app_max_php"})
+}
+# END boilerplate nextcloud app version clamping
+
+check() {
+  cd $_name
+  _nextcloud_app_check
+}
+
+package() {
+  install -vdm 755 "$pkgdir/usr/share/webapps/nextcloud/apps/"
+  cp -av $_name "$pkgdir/usr/share/webapps/nextcloud/apps/"
+  cd $_name
+  _nextcloud_app_package
+}



More information about the arch-commits mailing list