summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--office/onlyoffice-desktopeditors/README14
-rw-r--r--office/onlyoffice-desktopeditors/desktopeditors6
-rw-r--r--office/onlyoffice-desktopeditors/desktopeditors.desktop39
-rw-r--r--office/onlyoffice-desktopeditors/doinst.sh13
-rw-r--r--office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.SlackBuild88
-rw-r--r--office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.info10
-rw-r--r--office/onlyoffice-desktopeditors/slack-desc19
7 files changed, 189 insertions, 0 deletions
diff --git a/office/onlyoffice-desktopeditors/README b/office/onlyoffice-desktopeditors/README
new file mode 100644
index 0000000000..b4974ae119
--- /dev/null
+++ b/office/onlyoffice-desktopeditors/README
@@ -0,0 +1,14 @@
+ONLYOFFICE Desktop Editors is a free AGPL v3 licensed office suite that
+combines text, spreadsheet, and presentation editors. It is fully
+compatible with Office Open XML formats: DOCX, XLSX, and PPTX, which are
+its native formats. It also supports DOC, ODT, RTF, TXT, PDF, HTML,
+EPUB, XPS, DjVu, XLS, ODS, CSV, PPT, ODP.
+
+ONLYOFFICE Desktop Editors is an offline version (using Chromium
+Embedded Framework) of the ONLYOFFICE enterprise-level online editing
+suite.
+
+The source code of the ONLYOFFICE Desktop Editors is available on
+https://github.com/ONLYOFFICE/DesktopEditors but without a build
+instruction, so this script repackages the "Portable" tarball provided
+on https://www.onlyoffice.com/download-desktop.aspx
diff --git a/office/onlyoffice-desktopeditors/desktopeditors b/office/onlyoffice-desktopeditors/desktopeditors
new file mode 100644
index 0000000000..8c625f568f
--- /dev/null
+++ b/office/onlyoffice-desktopeditors/desktopeditors
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+LD_LIBRARY_PATH=./
+export LD_LIBRARY_PATH
+cd /opt/onlyoffice/desktopeditors/
+exec ./DesktopEditors "$@"
diff --git a/office/onlyoffice-desktopeditors/desktopeditors.desktop b/office/onlyoffice-desktopeditors/desktopeditors.desktop
new file mode 100644
index 0000000000..6d55ccaec2
--- /dev/null
+++ b/office/onlyoffice-desktopeditors/desktopeditors.desktop
@@ -0,0 +1,39 @@
+[Desktop Entry]
+Version=1.0
+Name=Desktop Editors
+Type=Application
+GenericName=ONLYOFFICE Desktop Editors
+Comment=Edit office documents
+Exec=desktopeditors %F
+Terminal=false
+Icon=asc-de
+Keywords=Text;Document;OpenDocument Text;Microsoft Word;Microsoft Works;odt;doc;docx;rtf;
+Categories=Office;WordProcessor;Spreadsheet;Presentation;
+MimeType=application/msword;application/vnd.ms-word;application/x-doc;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;text/spreadsheet;application/csv;application/excel;application/x-excel;application/x-msexcel;application/x-ms-excel;text/comma-separated-values;text/tab-separated-values;text/x-comma-separated-values;text/x-csv;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.slide;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;
+
+Actions=NewDocument;
+[Desktop Action NewDocument]
+Name=New Document
+Name[de]=Neues Dokument
+Name[fr]=Nouveau document
+Name[es]=Documento nuevo
+Name[ru]=Создать документ
+Exec=desktopeditors --new:doc
+
+Actions=NewSpreadsheet;
+[Desktop Action NewSpreadsheet]
+Name=New Spreadsheet
+Name[de]=Neues Tabellendokument
+Name[fr]=Nouveau classeur
+Name[es]=Hoja de cálculo nueva
+Name[ru]=Создать эл.таблицу
+Exec=desktopeditors --new:cell
+
+Actions=NewPresentation;
+[Desktop Action NewPresentation]
+Name=New Presentation
+Name[de]=Neue Präsentation
+Name[fr]=Nouvelle présentation
+Name[es]=Presentación nueva
+Name[ru]=Создать презентацию
+Exec=desktopeditors --new:slide
diff --git a/office/onlyoffice-desktopeditors/doinst.sh b/office/onlyoffice-desktopeditors/doinst.sh
new file mode 100644
index 0000000000..aea0f894eb
--- /dev/null
+++ b/office/onlyoffice-desktopeditors/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.SlackBuild b/office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.SlackBuild
new file mode 100644
index 0000000000..5771c2c062
--- /dev/null
+++ b/office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.SlackBuild
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+# Slackware build script for onlyoffice-desktopeditors
+
+# Copyright 2017, Alexander Verbovetsky, Moscow, Russia
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=onlyoffice-desktopeditors
+VERSION=${VERSION:-4.4.1.338}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ "$ARCH" != "x86_64" ]; then
+ echo "Only x86_64 is supported."
+ exit 1
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/opt/onlyoffice $OUTPUT
+cd $TMP
+tar xvf $CWD/onlyoffice-desktopeditors-x64-$VERSION.tar.gz \
+ -C $PKG/opt/onlyoffice
+cd $PKG
+
+mkdir -p usr/bin
+install -m 0755 -o root -g root $CWD/desktopeditors usr/bin
+
+for s in 16 24 32 48 64 128 256; do
+ mkdir -p usr/share/icons/hicolor/${s}x${s}/apps
+ install -m 0644 -o root -g root opt/onlyoffice/desktopeditors/asc-de-${s}.png \
+ usr/share/icons/hicolor/${s}x${s}/apps/asc-de.png
+done
+
+mkdir -p usr/share/applications
+install -m 0644 -o root -g root $CWD/desktopeditors.desktop usr/share/applications
+
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p usr/doc/$PRGNAM-$VERSION
+install -m 0644 opt/onlyoffice/desktopeditors/LICENSE.htm \
+ opt/onlyoffice/desktopeditors/3DPARTYLICENSE usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.info b/office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.info
new file mode 100644
index 0000000000..358e191410
--- /dev/null
+++ b/office/onlyoffice-desktopeditors/onlyoffice-desktopeditors.info
@@ -0,0 +1,10 @@
+PRGNAM="onlyoffice-desktopeditors"
+VERSION="4.4.1.338"
+HOMEPAGE="https://www.onlyoffice.com/apps.aspx"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="http://downloads.sourceforge.net/slackbuildsdirectlinks/onlyoffice-desktopeditors-x64-4.4.1.338.tar.gz"
+MD5SUM_x86_64="a0a23ea3b475a7680b0d7638eba8bc54"
+REQUIRES=""
+MAINTAINER="Alexander Verbovetsky"
+EMAIL="alik@ejik.org"
diff --git a/office/onlyoffice-desktopeditors/slack-desc b/office/onlyoffice-desktopeditors/slack-desc
new file mode 100644
index 0000000000..ce5eff82cd
--- /dev/null
+++ b/office/onlyoffice-desktopeditors/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+onlyoffice-desktopeditors: onlyoffice-desktopeditors (office suite)
+onlyoffice-desktopeditors:
+onlyoffice-desktopeditors: ONLYOFFICE Desktop Editors is a free AGPL v3 licensed office suite
+onlyoffice-desktopeditors: that combines text, spreadsheet and presentation editors. It is fully
+onlyoffice-desktopeditors: compatible with Office Open XML formats: .docx, .xlsx, .pptx, which
+onlyoffice-desktopeditors: are its native formats. It also supports DOC, ODT, RTF, TXT, PDF,
+onlyoffice-desktopeditors: HTML, EPUB, XPS, DjVu, XLS, ODS, CSV, PPT, ODP.
+onlyoffice-desktopeditors:
+onlyoffice-desktopeditors: Homepage: https://www.onlyoffice.com/apps.aspx
+onlyoffice-desktopeditors: Code repository: https://github.com/ONLYOFFICE/DesktopEditors
+onlyoffice-desktopeditors: