# Template file for 'onlyoffice'
pkgname=onlyoffice
version=8.3.2
revision=1
only_for_archs="x86_64"
hostmakedepends="tar xz"
short_desc="An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents"
maintainer="Naz <ndpm13@ch-naseem.com>"
license="AGPL-3.0-only"
homepage="https://www.onlyoffice.com/"
distfiles="https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/onlyoffice-desktopeditors_amd64.deb"
checksum=ba91a330b3495189caccee14b38b7ea91b9c2a5880a290e4c2696c617f112daf
nostrip=yes

do_extract() {
  mkdir -p ${DESTDIR}
  ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/onlyoffice-desktopeditors_amd64.deb
  tar xf data.tar.xz -C ${DESTDIR}
}

do_install() {
  # Cleanup up
  rm -rf ${DESTDIR}/etc
}
