alteroffice.sh 590 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/bin/sh

PKGNAME=alteroffice
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='AlterOffice from the official site'
URL="https://alteroffice.ru/"
BASEVER="3.0"

. $(dirname $0)/common.sh

warn_version_is_not_supported

case $(epm print info -s) in
    alt)
        distr="AltLinux_x64/*.rpm" ;;
    rosa|redos)
        distr="rpm_x64/*.rpm" ;;
    debian|astra)
        distr="deb_x64/*.deb" ;;
    ubuntu)
        distr="ubuntu_x64/*.deb" ;;
    *)
        fatal $1 is not supported ;;
esac

epm install "http://repo.alter-os.ru/testing/AlterOffice/v$BASEVER/linux/x64/$distr" --scripts