From ca0f01310fb86dc17957f990b55082a377a0ef19 Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Tue, 26 Jul 2022 05:50:41 +0000 Subject: onlyoffice-bin: new spell, office suite that combines text, spreadsheet and presentation editors --- ChangeLog | 4 +++ bin-editors/onlyoffice-bin/BUILD | 1 + bin-editors/onlyoffice-bin/DEPENDS | 52 ++++++++++++++++++++++++++++++++++++ bin-editors/onlyoffice-bin/DETAILS | 20 ++++++++++++++ bin-editors/onlyoffice-bin/FINAL | 8 ++++++ bin-editors/onlyoffice-bin/HISTORY | 3 +++ bin-editors/onlyoffice-bin/INSTALL | 18 +++++++++++++ bin-editors/onlyoffice-bin/PRE_BUILD | 6 +++++ 8 files changed, 112 insertions(+) create mode 100755 bin-editors/onlyoffice-bin/BUILD create mode 100755 bin-editors/onlyoffice-bin/DEPENDS create mode 100755 bin-editors/onlyoffice-bin/DETAILS create mode 100755 bin-editors/onlyoffice-bin/FINAL create mode 100644 bin-editors/onlyoffice-bin/HISTORY create mode 100755 bin-editors/onlyoffice-bin/INSTALL create mode 100755 bin-editors/onlyoffice-bin/PRE_BUILD diff --git a/ChangeLog b/ChangeLog index 475e95f..5ade6f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2022-07-25 Vlad Glagolev + * bin-editors/onlyoffice-bin: new spell, office suite that combines + text, spreadsheet and presentation editors + 2022-05-18 Vlad Glagolev * bin-utils/gitmux-bin: new spell, Git in your tmux status bar diff --git a/bin-editors/onlyoffice-bin/BUILD b/bin-editors/onlyoffice-bin/BUILD new file mode 100755 index 0000000..27ba77d --- /dev/null +++ b/bin-editors/onlyoffice-bin/BUILD @@ -0,0 +1 @@ +true diff --git a/bin-editors/onlyoffice-bin/DEPENDS b/bin-editors/onlyoffice-bin/DEPENDS new file mode 100755 index 0000000..16537fb --- /dev/null +++ b/bin-editors/onlyoffice-bin/DEPENDS @@ -0,0 +1,52 @@ +# essential +runtime_depends -sub CXX gcc && + +# crypto stack +runtime_depends nspr && +runtime_depends nss && + +# X11 +runtime_depends libxcb && +runtime_depends -sub XCB libx11 && +runtime_depends libxext && +runtime_depends libxscrnsaver && +runtime_depends libxi && +runtime_depends libxtst && +runtime_depends libxcomposite && +runtime_depends libxrender && +runtime_depends libxrandr && +runtime_depends libxfixes && +runtime_depends libxdamage && +runtime_depends libxcursor && + +# GTK+ +runtime_depends expat && +runtime_depends dbus && +runtime_depends glib2 && +runtime_depends freetype2 && +runtime_depends fontconfig && +runtime_depends atk && +runtime_depends pango && +runtime_depends cairo && +runtime_depends gdk-pixbuf2 && +runtime_depends gconf2 && +runtime_depends gtk+3 && +# required for gtk-update-icon-cache +depends gtk+2 && +# required for update-desktop-database +depends desktop-file-utils && + +# audio +runtime_depends alsa-lib && +runtime_depends pulseaudio && + +# media +runtime_depends gstreamer-1.0 && +runtime_depends gst-plugins-base-1.0 && +runtime_depends gst-plugins-ugly-1.0 && + +# printing +runtime_depends cups && + +# other +runtime_depends hicolor-icon-theme diff --git a/bin-editors/onlyoffice-bin/DETAILS b/bin-editors/onlyoffice-bin/DETAILS new file mode 100755 index 0000000..95489e2 --- /dev/null +++ b/bin-editors/onlyoffice-bin/DETAILS @@ -0,0 +1,20 @@ + SPELL=onlyoffice-bin + SPELLX=${SPELL/-bin/}-desktopeditors + VERSION=7.1.1 + ARCH=amd64 + SOURCE=${SPELLX}-${VERSION}_${ARCH}.deb + SOURCE_URL[0]=https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${VERSION}/${SPELLX}_${ARCH}.deb + SOURCE_HASH=sha512:e62d9299b0e8b4f5972af54bbe27672f31271bb5eb7f94794aa7fac09d2cca3f4db4743d025b6bcd4841ca57a90a9994da4aed27ca4fd80730d0e284266ae1b0 +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}" + GATHER_DOCS=off + WEB_SITE=https://www.onlyoffice.com/ + ENTERED=20220725 + LICENSE[0]=AGPL + SHORT="office suite that combines text, spreadsheet and presentation editors" +cat << EOF +ONLYOFFICE Desktop Editors is a free office suite that combines text, +spreadsheet and presentation editors allowing to create, view and edit +documents stored on your Linux PC without an Internet connection. + +It is fully compatible with Office Open XML formats: .docx, .xlsx, .pptx. +EOF diff --git a/bin-editors/onlyoffice-bin/FINAL b/bin-editors/onlyoffice-bin/FINAL new file mode 100755 index 0000000..4668792 --- /dev/null +++ b/bin-editors/onlyoffice-bin/FINAL @@ -0,0 +1,8 @@ +# binaries require /lib64 +if [ ! -d "${INSTALL_ROOT}/lib64" ]; then + ln -vsf "${TRACK_ROOT}/lib" "${INSTALL_ROOT}/lib64" +fi && + +update-desktop-database && + +gtk-update-icon-cache -q -t -f "${INSTALL_ROOT}/usr/share/icons/hicolor" diff --git a/bin-editors/onlyoffice-bin/HISTORY b/bin-editors/onlyoffice-bin/HISTORY new file mode 100644 index 0000000..525101f --- /dev/null +++ b/bin-editors/onlyoffice-bin/HISTORY @@ -0,0 +1,3 @@ +2022-07-25 Vlad Glagolev + * DETAILS, DEPENDS, {PRE_,}BUILD, INSTALL, FINAL: created spell, + version 7.1.1 diff --git a/bin-editors/onlyoffice-bin/INSTALL b/bin-editors/onlyoffice-bin/INSTALL new file mode 100755 index 0000000..c46f854 --- /dev/null +++ b/bin-editors/onlyoffice-bin/INSTALL @@ -0,0 +1,18 @@ +cp -dRv opt/onlyoffice "${INSTALL_ROOT}/opt" && +cp -Rv usr/bin/*desktopeditors "${INSTALL_ROOT}/usr/bin" && + +chmod 4755 "${INSTALL_ROOT}/opt/onlyoffice/desktopeditors/chrome-sandbox" && + +install -vm 644 usr/share/applications/onlyoffice-desktopeditors.desktop \ + "${INSTALL_ROOT}/usr/share/applications/onlyoffice-desktopeditors.desktop" && + +# icons +local _file +local _res + +while read -r -d '' _file; do + _res="$(sed 's/\.png$//;s/^.*-//' <<< "$_file")" + install -d -m755 "${INSTALL_ROOT}/usr/share/icons/hicolor/${_res}x${_res}/apps" + ln -s "${INSTALL_ROOT}/opt/onlyoffice/desktopeditors/asc-de-${_res}.png" \ + "${INSTALL_ROOT}/usr/share/icons/hicolor/${_res}x${_res}/apps/onlyoffice-desktopeditors.png" +done < <(find "${INSTALL_ROOT}/opt/onlyoffice/desktopeditors" -maxdepth 1 -type f -name 'asc-de-*.png' -print0) diff --git a/bin-editors/onlyoffice-bin/PRE_BUILD b/bin-editors/onlyoffice-bin/PRE_BUILD new file mode 100755 index 0000000..dea9348 --- /dev/null +++ b/bin-editors/onlyoffice-bin/PRE_BUILD @@ -0,0 +1,6 @@ +mk_source_dir "${SOURCE_DIRECTORY}" && +cd "${SOURCE_DIRECTORY}" && + +verify_file && + +ar p "${SOURCE_CACHE}/${SOURCE}" data.tar.xz | tar -xJf - -- cgit v1.2.3