Commit e55ac122 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play r7-office: update for support new versions

parent 97c67f45
...@@ -4,34 +4,44 @@ PKGNAME=r7-office ...@@ -4,34 +4,44 @@ PKGNAME=r7-office
SKIPREPACK=1 SKIPREPACK=1
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64"
DESCRIPTION="R7 Office for Linux from the official site" DESCRIPTION="R7 Office for Linux from the official site"
URL="https://r7-office.ru/"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r7-office 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"
case $(epm print info -e) in case $(epm print info -e) in
AstraLinux*|Debian/*) AstraLinux*|Debian/*)
PKG="https://download.r7-office.ru/astra/r7-office.deb" mask="astra/*.deb"
;; ;;
Ubuntu/*) Ubuntu/*)
PKG="https://download.r7-office.ru/ubuntu/r7-office.deb" mask="ubuntu/*.deb"
;; ;;
RedOS/*|AlterOS/*) RedOS/*|AlterOS/*)
PKG="https://download.r7-office.ru/redos/r7-office.rpm" mask="centos/*.rpm"
;; ;;
AlterOS/*|CentOS/*) ROSA/7.9)
PKG="https://download.r7-office.ru/centos/r7-office.rpm" mask="rosa/cobalt/$PKGNAME-*.rpm"
;;
ROSA/*)
mask="rosa/$PKGNAME-*.rpm"
;; ;;
ALTLinux/*) ALTLinux/*)
PKG="https://download.r7-office.ru/altlinux/r7-office.rpm" mask="altlinux/*.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." fatal "Unsupported distro $(epm print info -e). Ask application vendor for a support."
;; ;;
esac esac
PKGURL="$(epm tool eget --list --latest -U "$URLBASE" "$mask")"
# install with scripts (need for install icons and associations) # install with scripts (need for install icons and associations)
# see /etc/eepm/pkgallowscripts.list # see /etc/eepm/pkgallowscripts.list
# TODO: pack it into the package # TODO: pack it into the package
epm install "$PKG" epm install "$PKGURL"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment