r7-office.sh 1.08 KB
Newer Older
1 2 3
#!/bin/sh

PKGNAME=r7-office
4
SKIPREPACK=1
5
SUPPORTEDARCHES="x86_64"
6
DESCRIPTION="R7 Office for Linux from the official site"
7
URL="https://r7-office.ru/"
8 9

. $(dirname $0)/common.sh
10

11 12 13 14 15 16
URLBASE="https://r7-office.ru/download_editor"

#[ "$VERSION" = "*" ]

# $ eget -U --list "https://r7-office.ru/download_editor" "*.rpm"
# $ eget -U --list "https://r7-office.ru/download_editor" "*.deb"
17

18 19
case $(epm print info -e) in
    AstraLinux*|Debian/*)
20
        mask="astra/*.deb"
21 22
        ;;
    Ubuntu/*)
23
        mask="ubuntu/*.deb"
24 25
        ;;
    RedOS/*|AlterOS/*)
26
        mask="centos/*.rpm"
27
        ;;
28 29 30 31 32
    ROSA/7.9)
        mask="rosa/cobalt/$PKGNAME-*.rpm"
        ;;
    ROSA/*)
        mask="rosa/$PKGNAME-*.rpm"
33
        ;;
34
    ALTLinux/*)
35
        mask="altlinux/*.rpm"
36 37 38 39 40
        ;;
    *)
        fatal "Unsupported distro $(epm print info -e). Ask application vendor for a support."
        ;;
esac
41

42
PKGURL="$(eget --list --latest -U  "$URLBASE" "$mask")"
43

44
# install with scripts (need for install icons and associations)
45
# see /etc/eepm/pkgallowscripts.list
46
# TODO: pack it into the package
47
epm install "$PKGURL"