[arch-commits] Commit in nextcloud-app-deck/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Thu Apr 15 08:33:25 UTC 2021


    Date: Thursday, April 15, 2021 @ 08:33:25
  Author: dvzrv
Revision: 918964

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 35 insertions(+), 24 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-15 08:33:18 UTC (rev 918963)
+++ PKGBUILD	2021-04-15 08:33:25 UTC (rev 918964)
@@ -1,24 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# Contributor: Jonas Heinrich <onny at project-insanity.org>
-
-pkgname=nextcloud-app-deck
-_name=deck
-pkgver=1.3.2
-pkgrel=1
-# upstream doesn't adhere to semver:
-# https://github.com/nextcloud/deck/issues/1197
-epoch=1
-pkgdesc="Kanban style organization tool aimed at personal planning and project organization"
-arch=('any')
-url="https://github.com/nextcloud/deck"
-license=('AGPL3')
-groups=('nextcloud-apps')
-depends=('nextcloud>=21' 'nextcloud<22')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/${_name}/releases/download/v${pkgver}/${_name}.tar.gz")
-sha512sums=('8986f40966c612ad71c422b099dad60776efeae93a9310ead2d585e84025410c2a5dcc71e322fe041cca3f374e0fb1f834440b431f15159cc68e29e9c149a03c')
-b2sums=('babbec1dd61d157c58a096b7e6eef269ff467c11213782ed60e1ce76ed3e96e6c2b1a9376c3f5f34ad3b32cd06bd6c28fbaf592a9ea3f34c2e282305013d9c3f')
-
-package() {
-  install -vdm 755 "${pkgdir}/usr/share/webapps/nextcloud/apps/"
-  cp -av "${_name}" "${pkgdir}/usr/share/webapps/nextcloud/apps/"
-}

Copied: nextcloud-app-deck/repos/community-any/PKGBUILD (from rev 918963, nextcloud-app-deck/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-04-15 08:33:25 UTC (rev 918964)
@@ -0,0 +1,35 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+
+pkgname=nextcloud-app-deck
+_name=deck
+pkgver=1.4.0
+pkgrel=1
+# upstream doesn't adhere to semver:
+# https://github.com/nextcloud/deck/issues/1197
+epoch=1
+pkgdesc="Kanban style organization tool aimed at personal planning and project organization"
+arch=('any')
+url="https://github.com/nextcloud/deck"
+license=('AGPL3')
+groups=('nextcloud-apps')
+depends=('nextcloud>21' 'nextcloud<22')
+makedepends=('ripgrep' 'yq')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/${_name}/releases/download/v${pkgver}/${_name}.tar.gz")
+sha512sums=('18318b08acc76e2690679a1e447dfcc45c60c231fdefa894798e00b9f011a72e53a183e52f7b807d5fce258873e0ec14a16e2ecd49e61fd3d7d052194391f15f')
+b2sums=('14e565524a1e6d2b4f1f6b73b08c66ffb16440fb0673645db3de786c3f025a751df3d6f50efe60d3d68cb416d0c455f2af4d9e49a9b3c3ce96853e3bdda03bfa')
+
+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