# Maintainer: Carlos Galindo < arch -at - cgj.es > _appname=onlyoffice pkgname=nextcloud-app-onlyoffice pkgver=7.2.0 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') depends=('nextcloud>=22' 'nextcloud<23') 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") sha512sums=('2ca3ad363413aab05c27c778b80d05c1c1b151a89aadd854b827c91a83e8be6f1c4d95e3e668a7435289be4f5c90037acf3d8c9ee9149506d859530a8efdbc49' '309994b30c27a80cdc973d93c61a4c979acb9413acf78040d2877b0098bd8640aa79e82e991bf6d11af02d07a16ea67bcb5c42e9f7c96daccb977b5716fcafb1') package() { 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" }