# Template file for 'onlyoffice'
pkgname=onlyoffice
version=8.2.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=0f02a93cccac2e18c00626141836ecda31b4960473597f97e21afe2dbda5c6a9
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
}