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

Sergej Pupykin spupykin at gemini.archlinux.org
Wed Dec 1 00:54:26 UTC 2021


    Date: Wednesday, December 1, 2021 @ 00:54:26
  Author: spupykin
Revision: 1059093

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   86 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 43 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 00:54:18 UTC (rev 1059092)
+++ PKGBUILD	2021-12-01 00:54:26 UTC (rev 1059093)
@@ -1,43 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=nextcloud-app-calendar
-_name=calendar
-epoch=1
-pkgver=2.4.0
-pkgrel=1
-pkgdesc="Calendar app for nextcloud"
-arch=('any')
-url="https://github.com/nextcloud/calendar/"
-license=('AGPL')
-depends=('nextcloud')
-makedepends=('ripgrep' 'yq')
-groups=('nextcloud-apps')
-options=('!strip')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud-releases/calendar/releases/download/v$pkgver/calendar.tar.gz")
-sha256sums=('c4dd22341f1a5c2c6f6c161fbb79fbb027e4e0ebf4eca0b8d523f7dfe3d6a13c')
-
-_get_nextcloud_versions() {
-  _app_min_major_version="$(xq '.info.dependencies.nextcloud["@min-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
-  _app_max_major_version="$(xq '.info.dependencies.nextcloud["@max-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
-  _app_max_major_version=$(expr ${_app_max_major_version} + 1)
-}
-
-check() {
-  local _app_min_major_version
-  local _app_max_major_version
-  _get_nextcloud_versions
-
-  local _nextcloud_major_version="$(rg "OC_Version = " /usr/share/webapps/nextcloud/version.php |cut -d'(' -f2| cut -d ',' -f1)"
-  if [[ "$(vercmp "${_nextcloud_major_version}" "${_app_min_major_version}")" -lt 0 ]] || [[ "$(vercmp "${_nextcloud_major_version}" "${_app_max_major_version}")" -gt 0 ]] ; then
-    printf "%s requires nextcloud >= %s/ nextcloud <= %s, but nextcloud %s is provided.\n" "$pkgname" "${_app_min_major_version}" "${_app_max_major_version}" "${_nextcloud_major_version}"
-    exit 1
-  fi
-}
-
-package() {
-  _get_nextcloud_versions
-  depends=("nextcloud>=${_app_min_major_version}" "nextcloud<${_app_max_major_version}")
-
-  install -d "$pkgdir"/usr/share/webapps/nextcloud/apps
-  cp -a "$srcdir"/calendar "$pkgdir"/usr/share/webapps/nextcloud/apps/calendar
-}

Copied: nextcloud-app-calendar/repos/community-any/PKGBUILD (from rev 1059092, nextcloud-app-calendar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-01 00:54:26 UTC (rev 1059093)
@@ -0,0 +1,43 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=nextcloud-app-calendar
+_name=calendar
+epoch=1
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="Calendar app for nextcloud"
+arch=('any')
+url="https://github.com/nextcloud/calendar/"
+license=('AGPL')
+depends=('nextcloud')
+makedepends=('ripgrep' 'yq')
+groups=('nextcloud-apps')
+options=('!strip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud-releases/calendar/releases/download/v$pkgver/calendar.tar.gz")
+sha256sums=('a54fbf670563c61c8668a8debbc4a97dd652bd03f39c849e9b5da95344897d52')
+
+_get_nextcloud_versions() {
+  _app_min_major_version="$(xq '.info.dependencies.nextcloud["@min-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
+  _app_max_major_version="$(xq '.info.dependencies.nextcloud["@max-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
+  _app_max_major_version=$(expr ${_app_max_major_version} + 1)
+}
+
+check() {
+  local _app_min_major_version
+  local _app_max_major_version
+  _get_nextcloud_versions
+
+  local _nextcloud_major_version="$(rg "OC_Version = " /usr/share/webapps/nextcloud/version.php |cut -d'(' -f2| cut -d ',' -f1)"
+  if [[ "$(vercmp "${_nextcloud_major_version}" "${_app_min_major_version}")" -lt 0 ]] || [[ "$(vercmp "${_nextcloud_major_version}" "${_app_max_major_version}")" -gt 0 ]] ; then
+    printf "%s requires nextcloud >= %s/ nextcloud <= %s, but nextcloud %s is provided.\n" "$pkgname" "${_app_min_major_version}" "${_app_max_major_version}" "${_nextcloud_major_version}"
+    exit 1
+  fi
+}
+
+package() {
+  _get_nextcloud_versions
+  depends=("nextcloud>=${_app_min_major_version}" "nextcloud<${_app_max_major_version}")
+
+  install -d "$pkgdir"/usr/share/webapps/nextcloud/apps
+  cp -a "$srcdir"/calendar "$pkgdir"/usr/share/webapps/nextcloud/apps/calendar
+}



More information about the arch-commits mailing list