summaryrefslogtreecommitdiffstats
path: root/bin-editors/onlyoffice-bin/INSTALL
diff options
context:
space:
mode:
authorVlad Glagolev2022-07-26 05:50:41 +0000
committerVlad Glagolev2022-07-26 05:50:41 +0000
commitca0f01310fb86dc17957f990b55082a377a0ef19 (patch)
tree181cd8d6af6b217f3e766158c4b28daf696bc72c /bin-editors/onlyoffice-bin/INSTALL
parent5ded69fd3f7549d5e03ea4dda34d7c68353e7901 (diff)
onlyoffice-bin: new spell, office suite that combines text, spreadsheet and presentation editors
Diffstat (limited to 'bin-editors/onlyoffice-bin/INSTALL')
-rwxr-xr-xbin-editors/onlyoffice-bin/INSTALL18
1 files changed, 18 insertions, 0 deletions
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)