pkgs/srcpkgs/onlyoffice-desktopeditors/template
2024-06-23 17:08:42 -04:00

28 lines
1.2 KiB
Bash

# Template file for 'onlyoffice-desktopeditors'
pkgname=onlyoffice-desktopeditors
version=8.1.0
revision=1
archs="x86_64"
repository="cereus-extra"
build_style=fetch
hostmakedepends="tar xz"
depends="libstdc++ curl xdg-utils dejavu-fonts-ttf liberation-fonts-ttf
font-crosextra-carlito-ttf gst-plugins-ugly1 nss nspr alsa-lib gst-plugins-base1
libpulseaudio gtk+3 desktop-file-utils hicolor-icon-theme gstreamer1"
short_desc="OnlyOffice office suite for desktops"
maintainer="Kevin Figueroa <kfdevart@disroot.org>"
license="AGPL-3.0"
homepage="https://www.onlyoffice.com"
distfiles="https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${version}/onlyoffice-desktopeditors_amd64.deb"
changelog="https://github.com/ONLYOFFICE/DesktopEditors/blob/master/CHANGELOG.md"
checksum=852d7e80b375eec3f7105b9dddf4174567858906ebba604e34b8ea5c497cf49b
nostrip=yes
do_install() {
mkdir -p ${DESTDIR}
ar x onlyoffice-desktopeditors_amd64.deb
tar -xf data.tar.xz -C ${DESTDIR}
# Fix document opening in desktop entry
sed -i 's|Exec=/usr/bin/onlyoffice-desktopeditors %U|Exec=/usr/bin/onlyoffice-desktopeditors %F|g' ${DESTDIR}/usr/share/applications/onlyoffice-desktopeditors.desktop
}