src_prepare-overlay/app-office/onlyoffice-bin/onlyoffice-bin-5.6.4.ebuild

115 lines
2.0 KiB
Bash
Raw Normal View History

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop gnome2-utils multilib unpacker xdg-utils
MY_PN="ONLYOFFICE-DesktopEditors"
MY_P="${MY_PN}-${PVR//r}"
DESCRIPTION="onlyoffice is an office productivity suite (binary version)"
HOMEPAGE="https://www.onlyoffice.com/"
KEYWORDS="~amd64"
SRC_URI="
amd64? (
https://github.com/ONLYOFFICE/DesktopEditors/releases/download/${MY_P}/${PN/bin/desktopeditors}_amd64.deb -> ${MY_P}_amd64.deb
)
"
SLOT="0"
RESTRICT="mirror strip"
LICENSE="AGPL-3"
DEPEND="
app-arch/bzip2
dev-libs/expat
dev-libs/glib:2
dev-libs/libffi
dev-libs/libxml2:2
dev-libs/nss
dev-libs/atk
dev-qt/qtgui:5
dev-qt/qtcore:5
dev-qt/qtdbus:5
dev-qt/qtmultimedia:5
dev-qt/qtwidgets:5
dev-qt/qtx11extras:5
dev-qt/qtsvg:5
dev-qt/qtnetwork:5
dev-qt/qtopengl:5
media-libs/fontconfig:1.0
media-libs/freetype:2
media-libs/glu
media-libs/gst-plugins-base
media-libs/gstreamer
net-misc/curl
virtual/opengl
media-libs/tiff
sys-apps/util-linux
sys-libs/zlib
x11-libs/libdrm
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdamage
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrender
x11-libs/libXxf86vm
media-libs/libmng
media-fonts/dejavu
media-fonts/crosextrafonts-carlito
net-print/cups
net-misc/wget
x11-libs/cairo
x11-libs/gtk+:2
"
RDEPEND="
${DEPEND}
dev-db/sqlite:3
net-libs/libcurl-gnutls
!app-office/onlyoffice
"
PATCHES=( "${FILESDIR}/fixshellsyntax.patch" )
S="${WORKDIR}"
src_unpack(){
unpack_deb ${A}
}
src_install() {
mkdir -p "${D}"
cp -r . "${D}"
local res
for res in 16 24 32 48 64 128 256; do
doicon -s ${res} opt/onlyoffice/desktopeditors/asc-de-${res}.png
done
}
pkg_preinst(){
gnome2_gconf_savelist
xdg_environment_reset
}
pkg_postinst() {
gnome2_gconf_install
xdg_desktop_database_update
xdg_mimeinfo_database_update
xdg_icon_cache_update
}
pkg_postrm() {
gnome2_gconf_uninstall
xdg_desktop_database_update
xdg_mimeinfo_database_update
xdg_icon_cache_update
}