[arch-commits] Commit in nextcloud-app-bookmarks/trunk (PKGBUILD)
Sergej Pupykin
spupykin at archlinux.org
Wed Jul 7 17:03:33 UTC 2021
Date: Wednesday, July 7, 2021 @ 17:03:32
Author: spupykin
Revision: 975274
upgpkg: nextcloud-app-bookmarks 1:4.2.2-2
add/fix strict nextcloud version dep
Modified:
nextcloud-app-bookmarks/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-07 17:00:11 UTC (rev 975273)
+++ PKGBUILD 2021-07-07 17:03:32 UTC (rev 975274)
@@ -4,7 +4,7 @@
_name=bookmarks
epoch=1
pkgver=4.2.2
-pkgrel=1
+pkgrel=2
pkgdesc="Bookmarks app for nextcloud"
arch=('any')
url="https://github.com/nextcloud/bookmarks"
@@ -13,11 +13,12 @@
makedepends=('ripgrep' 'yq')
options=('!strip')
source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/bookmarks/releases/download/v$pkgver/bookmarks-$pkgver.tar.gz")
-sha256sums=('9c98eb894ecc4fd2ccc7c67aabab0f1d3f3672426f393d7bc202d298edc89167')
+sha256sums=('97259a848e778d19d9b28c9cb901f1e2953557b719302244bd0d391d344a3825')
_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() {
@@ -31,13 +32,11 @@
exit 1
fi
}
-sha256sums=('97259a848e778d19d9b28c9cb901f1e2953557b719302244bd0d391d344a3825')
package() {
_get_nextcloud_versions
-# depends=("nextcloud>=${_app_min_major_version}" "nextcloud<${_app_max_major_version}")
-depends=("nextcloud>=${_app_min_major_version}") # ignore for now, it works with 21
+ depends=("nextcloud>=${_app_min_major_version}" "nextcloud<${_app_max_major_version}")
install -d "$pkgdir"/usr/share/webapps/nextcloud/apps
cp -a "$srcdir"/bookmarks "$pkgdir"/usr/share/webapps/nextcloud/apps/bookmarks
More information about the arch-commits
mailing list