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

Sergej Pupykin spupykin at archlinux.org
Sat May 29 16:46:36 UTC 2021


    Date: Saturday, May 29, 2021 @ 16:46:36
  Author: spupykin
Revision: 950157

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   83 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 42 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-29 16:46:24 UTC (rev 950156)
+++ PKGBUILD	2021-05-29 16:46:36 UTC (rev 950157)
@@ -1,41 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=nextcloud-app-calendar
-_name=calendar
-epoch=1
-pkgver=2.2.1
-pkgrel=1
-pkgdesc="Calendar app for nextcloud"
-arch=('any')
-url="https://github.com/nextcloud/calendar/"
-license=('AGPL')
-depends=('nextcloud')
-makedepends=('ripgrep' 'yq')
-options=('!strip')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/calendar/releases/download/v$pkgver/calendar.tar.gz")
-sha256sums=('93baa6e3794d9f890dad6b8d3849237a5b1030a88b0d3d6977f74c988b6f302a')
-
-_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')"
-}
-
-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 950156, nextcloud-app-calendar/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-29 16:46:36 UTC (rev 950157)
@@ -0,0 +1,42 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=nextcloud-app-calendar
+_name=calendar
+epoch=1
+pkgver=2.2.2
+pkgrel=1
+pkgdesc="Calendar app for nextcloud"
+arch=('any')
+url="https://github.com/nextcloud/calendar/"
+license=('AGPL')
+depends=('nextcloud')
+makedepends=('ripgrep' 'yq')
+options=('!strip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/calendar/releases/download/v$pkgver/calendar.tar.gz")
+sha256sums=('93baa6e3794d9f890dad6b8d3849237a5b1030a88b0d3d6977f74c988b6f302a')
+
+_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')"
+}
+
+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
+}
+sha256sums=('5080aad2e23179de454885bc27f3911d6c45c48b81d0f3163e9c84c97f00e008')
+
+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