parent
1ced70f209
commit
7150682f03
@ -0,0 +1 @@
|
||||
DIST onlyoffice-bin-7.2.0_amd64.deb 191307998 BLAKE2B a53adc5064edb570d7dbff4ade679037d397a63de29d64e2708abbe77d490e5d0f5582e225767716b6b865fcfb33f90b3f707359d494ec862637bfcffb9b6e32 SHA512 bbc74370639182fd1ec7289ce5575d8bbb47070351327c229817fdecdd67cab34f8576cb319f9907d03b651dd47c0ef82fda6a4ec428f29d83fd8ddb9881b378
|
@ -0,0 +1,90 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop unpacker pax-utils xdg
|
||||
|
||||
DESCRIPTION="ONLYOFFICE Desktop Editors is an application for editing office documents (text documents, spreadsheets and presentations) from ONLYOFFICE cloud portal on local computer without browser using"
|
||||
HOMEPAGE="https://www.onlyoffice.com/"
|
||||
SRC_URI="
|
||||
amd64? (
|
||||
https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v"${PV}"/onlyoffice-desktopeditors_amd64.deb -> "${P}"_amd64.deb
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
RESTRICT="bindist strip"
|
||||
|
||||
RDEPEND="
|
||||
!app-office/onlyoffice
|
||||
|
||||
x11-base/xorg-server
|
||||
media-plugins/alsa-plugins
|
||||
|| (
|
||||
net-misc/curl
|
||||
net-misc/wget
|
||||
)
|
||||
|
||||
media-plugins/gst-plugins-libav
|
||||
media-libs/gst-plugins-ugly
|
||||
|
||||
app-accessibility/at-spi2-core
|
||||
app-accessibility/at-spi2-atk
|
||||
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/cairo
|
||||
x11-misc/xdg-utils
|
||||
|
||||
media-fonts/dejavu
|
||||
media-fonts/liberation-fonts
|
||||
media-fonts/crosextrafonts-carlito
|
||||
media-fonts/corefonts
|
||||
media-fonts/takao-fonts
|
||||
"
|
||||
|
||||
S=${WORKDIR}
|
||||
MY_P="onlyoffice"
|
||||
OPT="opt/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack_deb ${A}
|
||||
}
|
||||
|
||||
|
||||
src_prepare() {
|
||||
gzip -d usr/share/doc/${MY_P}-desktopeditors/changelog.Debian.gz || die
|
||||
mkdir -p usr/share/doc/${PF}
|
||||
mv usr/share/doc/${MY_P}-desktopeditors/changelog.Debian usr/share/doc/${PF}/changelog || die
|
||||
rm -rf usr/share/doc/${MY_P}-desktopeditors
|
||||
|
||||
mkdir -p usr/share/mime/application
|
||||
sed -i 's/version="1.0"?>/version="1.0" encoding="utf-8"?>/' ${OPT}/desktopeditors/mimetypes/*.xml
|
||||
cp -r ${OPT}/desktopeditors/mimetypes/*.xml usr/share/mime/application
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mv * "${D}" || die
|
||||
|
||||
for icon in "${D}/${OPT}/desktopeditors/asc-de-"*.png; do
|
||||
size="${icon##*/asc-de-}"
|
||||
size=${size%.png}
|
||||
dodir "/usr/share/icons/hicolor/${size}x${size}/apps"
|
||||
newicon -s ${size} "$icon" ${MY_P}-desktopeditors.png
|
||||
done
|
||||
|
||||
fperms +x /opt/onlyoffice/desktopeditors/{DesktopEditors,editors_helper}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
}
|
Loading…
Reference in new issue