diff --git a/prescription.d/r7office.sh b/prescription.d/r7office.sh new file mode 100755 index 0000000000000000000000000000000000000000..3d975a96c1b9160ea120f27e60282182c63892bf --- /dev/null +++ b/prescription.d/r7office.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# TODO: common place +fatal() +{ + echo "FATAL: $*" >&2 + exit 1 +} + +PKGNAME=r7-office + +if [ "$1" = "--remove" ] ; then + epm remove $PKGNAME + exit +fi + +[ "$1" != "--run" ] && echo "R7 Office for Linux from the official site" && exit + +[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1 + +#arch=$($DISTRVENDOR --distro-arch) +arch=amd64 +#pkgtype=$($DISTRVENDOR -p) +pkgtype=rpm + +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"