[arch-commits] Commit in nextcloud-app-mail/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Thu Jun 23 08:40:46 UTC 2022
Date: Thursday, June 23, 2022 @ 08:40:46
Author: dvzrv
Revision: 1239223
archrelease: copy trunk to community-any
Added:
nextcloud-app-mail/repos/community-any/PKGBUILD
(from rev 1239222, nextcloud-app-mail/trunk/PKGBUILD)
Deleted:
nextcloud-app-mail/repos/community-any/PKGBUILD
----------+
PKGBUILD | 132 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 66 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-23 08:40:38 UTC (rev 1239222)
+++ PKGBUILD 2022-06-23 08:40:46 UTC (rev 1239223)
@@ -1,66 +0,0 @@
-# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
-# Maintainer: Jonas Heinrich <onny at project-insanity.org>
-# Contributor: Jonas Heinrich <onny at project-insanity.org>
-
-pkgname=nextcloud-app-mail
-_name=mail
-pkgver=1.13.4
-pkgrel=1
-pkgdesc="An email app for NextCloud"
-arch=('any')
-url="https://github.com/nextcloud/mail"
-license=('AGPL')
-makedepends=(nextcloud yq)
-groups=('nextcloud-apps')
-options=('!strip')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud-releases/mail/releases/download/v${pkgver}/$_name-v${pkgver}.tar.gz")
-sha512sums=('5b4792c066ada1605ca572a3d57270e2c489f014ce9043e7ed3a933a7ca631a5ba0a41f4d19cc92642476de003be9c6e4c2c948da1b6d66c78c286c0eb017c44')
-b2sums=('13868b78e3202687367b9eed2bf5c982aba119a0732eb246a0576327c01d5563001f14163b72d47fa0598f3ef2be0bbf256ad770e8b6c0946566e1064964455b')
-
-# 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() {
- # TODO: build usr/share/webapps/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor manually!
- 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-mail/repos/community-any/PKGBUILD (from rev 1239222, nextcloud-app-mail/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-06-23 08:40:46 UTC (rev 1239223)
@@ -0,0 +1,66 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Jonas Heinrich <onny at project-insanity.org>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+
+pkgname=nextcloud-app-mail
+_name=mail
+pkgver=1.13.5
+pkgrel=1
+pkgdesc="An email app for NextCloud"
+arch=('any')
+url="https://github.com/nextcloud/mail"
+license=('AGPL')
+makedepends=(nextcloud yq)
+groups=('nextcloud-apps')
+options=('!strip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud-releases/mail/releases/download/v${pkgver}/$_name-v${pkgver}.tar.gz")
+sha512sums=('cfee98ff9f7116df58f239c19c34ea62ca37a806c3170cce3ef5a27ca8ee46bb26f5570571a7e4ed56a46f708c04a03144715f8ecc4ad74d6a911b3a8665cbd1')
+b2sums=('367eb7272ae954a9ed7be0522bc352561a803de4112905b2704eb831c709e018e6a68224afc33b28f6cf65e12e74eb0e72b12e302144c56becaabc6e385bf346')
+
+# 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() {
+ # TODO: build usr/share/webapps/nextcloud/apps/mail/vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor manually!
+ 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