Commit 9db5ae66 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play r7office: add support for many distro

parent 66611df3
......@@ -7,13 +7,28 @@ DESCRIPTION="R7 Office for Linux from the official site"
. $(dirname $0)/common.sh
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r7-office
#arch=$($DISTRVENDOR --distro-arch)
arch=amd64
#pkgtype=$($DISTRVENDOR -p)
pkgtype=rpm
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
PKG="https://download.r7-office.ru/altlinux/r7-office.rpm"
epm install fonts-ttf-dejavu fonts-ttf-google-crosextra-carlito fonts-ttf-liberation glibc gst-libav gst-plugins-ugly1.0 libX11 libXScrnSaver libcairo libgcc1 libgtk+2 libgtkglext
epm install "$PKG"
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