1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
PKGNAME=r7-office
SUPPORTEDARCHES="x86_64"
DESCRIPTION="R7 Office for Linux from the official site"
# remove with scripts (need for remove icons and associations)
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r7-office
case $(epm print info -e) in
AstraLinux*|Debian/*)
PKG="https://download.r7-office.ru/astra/r7-office.deb"
;;
Ubuntu/*)
PKG="https://download.r7-office.ru/ubuntu/r7-office.deb"
;;
RedOS/*|AlterOS/*)
PKG="https://download.r7-office.ru/redos/r7-office.rpm"
;;
AlterOS/*|CentOS/*)
PKG="https://download.r7-office.ru/centos/r7-office.rpm"
;;
ALTLinux/*|ALTServer/*)
PKG="https://download.r7-office.ru/altlinux/r7-office.rpm"
epm install --skip-installed fonts-ttf-dejavu fonts-ttf-google-crosextra-carlito fonts-ttf-liberation gst-libav gst-plugins-ugly1.0 libX11 libXScrnSaver libcairo libgcc1 libgtk+2 libgtkglext
;;
*)
fatal "Unsupported distro $(epm print info -e). Ask application vendor for a support."
;;
esac
# install with scripts (need for install icons and associations)
# TODO: pack it into the package
epm install "$PKG"