[arch-commits] Commit in nextcloud-app-news/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Fri Oct 8 17:30:03 UTC 2021
Date: Friday, October 8, 2021 @ 17:30:03
Author: dvzrv
Revision: 1028042
archrelease: copy trunk to community-any
Added:
nextcloud-app-news/repos/community-any/PKGBUILD
(from rev 1028041, nextcloud-app-news/trunk/PKGBUILD)
Deleted:
nextcloud-app-news/repos/community-any/PKGBUILD
----------+
PKGBUILD | 84 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 42 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-08 17:29:55 UTC (rev 1028041)
+++ PKGBUILD 2021-10-08 17:30:03 UTC (rev 1028042)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Jonas Heinrich <onny at project-insanity.org>
-
-pkgname=nextcloud-app-news
-_name=news
-pkgver=16.0.1
-pkgrel=1
-pkgdesc="An RSS/Atom feed aggregator"
-arch=('any')
-url="https://github.com/nextcloud/news"
-license=('AGPL3')
-makedepends=('nextcloud' 'ripgrep' 'yq')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/${_name}/releases/download/${pkgver}/${_name}.tar.gz")
-sha512sums=('83070b2186ec481a947ceae767f3fd53068fce95579b07f9c6e5f9077008524c65dfbdec0110b77f512b917eb4096f2b3e83dd5ebc06d10066667fa3d9bb1fd6')
-b2sums=('eff81548d44f55ef40905b218fdf5c8cd1a25ee083745d0a1f3d348823893270bdacba510becc4c5760a84496ceea258b1516f182a115e9caeb38c6d9a3e282e')
-
-_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 -vdm 755 "${pkgdir}/usr/share/webapps/nextcloud/apps"
- cp -av "${_name}" "${pkgdir}/usr/share/webapps/nextcloud/apps/"
-}
Copied: nextcloud-app-news/repos/community-any/PKGBUILD (from rev 1028041, nextcloud-app-news/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-08 17:30:03 UTC (rev 1028042)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+
+pkgname=nextcloud-app-news
+_name=news
+pkgver=16.1.0
+pkgrel=1
+pkgdesc="An RSS/Atom feed aggregator"
+arch=('any')
+url="https://github.com/nextcloud/news"
+license=('AGPL3')
+makedepends=('nextcloud' 'ripgrep' 'yq')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/${_name}/releases/download/${pkgver}/${_name}.tar.gz")
+sha512sums=('b6b33f978c1306c07f20db4a0826bdf197e6965b5812e8dfaf411f32f0fe24819dda78ca7603e27d8fb2aa5331c59c25fc9f5a195926bed5815b3128a505f55c')
+b2sums=('6155280f4aa95f7936f87a31e8bba47a47208e3cd70298caf11c6adb4701be420803bb65b8ba19eee4e8bc5c50dfab0ad2270f9383a9c89daf4334f089ba15e5')
+
+_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 -vdm 755 "${pkgdir}/usr/share/webapps/nextcloud/apps"
+ cp -av "${_name}" "${pkgdir}/usr/share/webapps/nextcloud/apps/"
+}
More information about the arch-commits
mailing list