# Maintainer: Carlos Galindo < arch -at - cgj.es > _appname=onlyoffice pkgname=nextcloud-app-onlyoffice pkgver=7.3.2 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>=21' 'nextcloud<24') 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=('240c918be38c342f2598b2843e78c6571c8a5bce3fe2a27ba4420956ee123d3077b5a52cb819d307ae85d9c012ef75125930ee89ae7759ccb46486aa2ed6bca0' '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" }