2021-06-26 01:55:01 +02:00
|
|
|
# Maintainer: Carlos Galindo < arch -at - cgj.es >
|
|
|
|
_appname=onlyoffice
|
|
|
|
pkgname=nextcloud-app-onlyoffice
|
2023-03-20 15:37:39 +01:00
|
|
|
pkgver=7.8.0
|
2021-06-26 01:55:01 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="ONLYOFFICE connector allows you to view, edit and collaborate using ONLYOFFICE Docs."
|
|
|
|
arch=("any")
|
|
|
|
url="https://github.com/ONLYOFFICE/onlyoffice-nextcloud"
|
|
|
|
license=('AGPL3')
|
2022-09-11 14:30:49 +02:00
|
|
|
makedepends=('yq')
|
2021-06-26 01:55:01 +02:00
|
|
|
source=("$_appname-nextcloud-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
|
|
|
|
"onlyoffice-document-templates-main-new.tar.gz::https://github.com/ONLYOFFICE/document-templates/archive/main/new.tar.gz")
|
2023-03-20 15:37:39 +01:00
|
|
|
sha512sums=('77db5d8bcb91141e4f64e33136c725a1b4f8db0af9df3e41270d10b21c6d9984a0f9402947e4b4c5568e78f5c9d1fbefb6d371448953dc19a5ea0b0178a7d630'
|
2022-05-29 23:19:43 +02:00
|
|
|
'0d4239ea9d9f7848afe4eb192b67bfae5e56e7614d38eb6970cf6a54651f1a32c5e30d229e2c63b98530fc98e87f0e395d051234f33514109dc17bf1ca694b11')
|
2021-06-26 01:55:01 +02:00
|
|
|
|
2022-09-11 14:30:49 +02:00
|
|
|
_get_nextcloud_versions() {
|
|
|
|
_app_min_major_version="$(xq '.info.dependencies.nextcloud["@min-version"]' "${_appname}-nextcloud-$pkgver/appinfo/info.xml"| sed 's/"//g')"
|
|
|
|
_app_max_major_version="$(xq '.info.dependencies.nextcloud["@max-version"]' "${_appname}-nextcloud-$pkgver/appinfo/info.xml"| sed 's/"//g')"
|
|
|
|
_app_max_major_version=$(expr ${_app_max_major_version} + 1)
|
|
|
|
}
|
|
|
|
|
2021-06-26 01:55:01 +02:00
|
|
|
package() {
|
2022-09-11 14:30:49 +02:00
|
|
|
local _app_min_major_version
|
|
|
|
local _app_max_major_version
|
|
|
|
_get_nextcloud_versions
|
|
|
|
|
|
|
|
depends=("nextcloud>=$_app_min_major_version" "nextcloud<$_app_max_major_version")
|
2021-06-26 01:55:01 +02:00
|
|
|
local _appsdir="$pkgdir/usr/share/webapps/nextcloud/apps"
|
|
|
|
mkdir -p "$_appsdir"
|
|
|
|
cp -a "$_appname-nextcloud-$pkgver" "$_appsdir/$_appname"
|
|
|
|
rmdir "$_appsdir/$_appname/assets"
|
|
|
|
cp -a document-templates-main-new "$_appsdir/$_appname/assets"
|
|
|
|
}
|