Date: Thursday, February 2, 2023 @ 22:06:20
Author: dvzrv
Revision: 1392036
archrelease: copy trunk to community-any
Added:
nextcloud-app-calendar/repos/community-any/PKGBUILD
(from rev 1392035, 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 2023-02-02 22:05:57 UTC (rev 1392035)
+++ PKGBUILD 2023-02-02 22:06:20 UTC (rev 1392036)
@@ -1,64 +0,0 @@
-# Maintainer: Sergej Pupykin <[email protected]>
-
-pkgname=nextcloud-app-calendar
-_name=calendar
-epoch=1
-pkgver=4.2.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=('60aa0baf8fd739d616ab1a1f8d87f0a0a88b405574997cf2733886df48b77069')
-b2sums=('441d9aa603b56cb76d1cd932d2230bcbf9e64e0d1ceae6af12a0c25d803b0f49919c00776b538e41abdde499ae1d8f6ca28cfccc68aec5bc741f4d4837c7246e')
-
-# 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-any/PKGBUILD (from rev 1392035,
nextcloud-app-calendar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-02 22:06:20 UTC (rev 1392036)
@@ -0,0 +1,64 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+
+pkgname=nextcloud-app-calendar
+_name=calendar
+epoch=1
+pkgver=4.2.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=('729bd1a9adf93384c4e30b52cb8331712eecbaf4a73a0637fdb1bdc7c5dee9a4')
+b2sums=('e7f7fa08fbb44624e586d0a02a8b47384cc4d1a0e39690beb432937c7647cf5e55c9d59bdf8e5307102c21e02043d1034f8b8b6bf3563d428b63cf5382bdbc65')
+
+# 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
+}