Date: Friday, December 30, 2022 @ 09:39:18
Author: dvzrv
Revision: 1372374
archrelease: copy trunk to community-testing-any
Added:
nextcloud-app-calendar/repos/community-testing-any/PKGBUILD
(from rev 1372373, nextcloud-app-calendar/trunk/PKGBUILD)
Deleted:
nextcloud-app-calendar/repos/community-testing-any/PKGBUILD
----------+
PKGBUILD | 128 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 64 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-30 09:38:55 UTC (rev 1372373)
+++ PKGBUILD 2022-12-30 09:39:18 UTC (rev 1372374)
@@ -1,64 +0,0 @@
-# Maintainer: Sergej Pupykin <[email protected]>
-
-pkgname=nextcloud-app-calendar
-_name=calendar
-epoch=1
-pkgver=4.1.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=('b22a3b9e16b6c224ad0d3e75c12b4c600fd64fc2dc128a1fcd95e41806f4cd38')
-b2sums=('4985ee45b3635b32bdd3f2924dfbe2b62f0dc99400c0db78baa5b2fef792b64d6f6df17c2d474cdde171982e37cde8ac3650d9d6063d238c76066a6b6608fdbf')
-
-# 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=(php php-legacy)
-_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-testing-any/PKGBUILD (from rev
1372373, nextcloud-app-calendar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-30 09:39:18 UTC (rev 1372374)
@@ -0,0 +1,64 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+
+pkgname=nextcloud-app-calendar
+_name=calendar
+epoch=1
+pkgver=4.2.0
+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=('bbb731410bb7be52969dba15721ca8a0ce3419444af775f8304196a10ad964c1')
+b2sums=('303c692dff66f4e834cf8098fbaa7eef9b72622c60606807d1e837b8eb76033a6f278f97c7b3349a73919d6b3893a58a4fdabca2f0d8eeaefa752106fd151001')
+
+# 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=(php php-legacy)
+_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
+}