[arch-commits] Commit in nextcloud-app-news/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Fri May 7 16:46:25 UTC 2021
Date: Friday, May 7, 2021 @ 16:46:25
Author: dvzrv
Revision: 928631
archrelease: copy trunk to community-any
Added:
nextcloud-app-news/repos/community-any/PKGBUILD
(from rev 928630, nextcloud-app-news/trunk/PKGBUILD)
Deleted:
nextcloud-app-news/repos/community-any/PKGBUILD
----------+
PKGBUILD | 62 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 31 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-07 16:45:07 UTC (rev 928630)
+++ PKGBUILD 2021-05-07 16:46:25 UTC (rev 928631)
@@ -1,31 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Jonas Heinrich <onny at project-insanity.org>
-
-pkgname=nextcloud-app-news
-_name=news
-pkgver=15.4.2
-pkgrel=1
-pkgdesc="An RSS/Atom feed aggregator"
-arch=('any')
-url="https://github.com/nextcloud/news"
-license=('AGPL3')
-depends=('nextcloud>21' 'nextcloud<22')
-makedepends=('ripgrep' 'yq')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/${_name}/releases/download/${pkgver}/${_name}.tar.gz")
-sha512sums=('be837c9f50a6e07818d01538b97f8e4bef3b9602b63f04fb0eb1fe8f33eba5f0c5c9090b1914b4086062ccbfcba007edbab77a5fc41ec5bb8122d0c77eb226a4')
-b2sums=('e869ba4685302db43b3909b60b5e15e327bbef44dcba9ca040b8f7f78b8b07e18c3465bcc9a8e0bdf5d85cdc8fefc36a871ad6277376a113f2f8ebfb0300c48d')
-
-check() {
- local _app_min_major_version="$(xq '.info.dependencies.nextcloud["@min-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
- local _app_max_major_version="$(xq '.info.dependencies.nextcloud["@max-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
- 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() {
- 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 928630, nextcloud-app-news/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-07 16:46:25 UTC (rev 928631)
@@ -0,0 +1,31 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+
+pkgname=nextcloud-app-news
+_name=news
+pkgver=15.4.3
+pkgrel=1
+pkgdesc="An RSS/Atom feed aggregator"
+arch=('any')
+url="https://github.com/nextcloud/news"
+license=('AGPL3')
+depends=('nextcloud>21' 'nextcloud<22')
+makedepends=('ripgrep' 'yq')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/${_name}/releases/download/${pkgver}/${_name}.tar.gz")
+sha512sums=('40545903f23012417db981c0400fe9909cbbd3f7e595e891da85992e2eb97898f847369789827f88d49cddf3917d8285513556f5021339a699c423f50aa9f13b')
+b2sums=('fd1b662f2393d40644a53997764b803563c081ef2fe2c8fb37d0762073141cf700f888b1d169b5b959b7ff1f992c3a1914fa812c0c522818f37276a5fd8cc1dc')
+
+check() {
+ local _app_min_major_version="$(xq '.info.dependencies.nextcloud["@min-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
+ local _app_max_major_version="$(xq '.info.dependencies.nextcloud["@max-version"]' "${_name}/appinfo/info.xml"| sed 's/"//g')"
+ 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() {
+ 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