r7office.sh 1.27 KB
Newer Older
1 2 3
#!/bin/sh

PKGNAME=r7-office
4
SUPPORTEDARCHES="x86_64"
5 6
DESCRIPTION="R7 Office for Linux from the official site"

7 8
# remove with scripts (need for remove icons and associations)
if [ "$1" = "--remove" ] ; then
9
    epm remove $PKGNAME
10 11
    exit
fi
12

13
. $(dirname $0)/common.sh
14

15
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r7-office
16

17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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
38

39 40
# install with scripts (need for install icons and associations)
# TODO: pack it into the package
41
epm install "$PKG"