zoom.sh 670 Bytes
Newer Older
1 2
#!/bin/sh

3
PKGNAME=zoom
4
SUPPORTEDARCHES="x86_64 x86"
5
DESCRIPTION="Zoom client from the official site"
6

7
. $(dirname $0)/common.sh
8

9

10
arch=$($DISTRVENDOR --distro-arch)
11 12
case $arch in
    x86_64|amd64)
13
        version=latest
14 15
        arch=$arch ;;
    i586|i386)
16
        # latest does not work
17 18
        version=5.4.53391.1108
        arch=i686 ;;
19
    *)
20
        fatal "Unsupported arch $arch for $($DISTRVENDOR -d)"
21 22
esac

23
if [ "$($DISTRVENDOR -s)" = "alt" ] ; then
24
    epm install --repack https://zoom.us/client/$version/zoom_$arch.rpm
25 26 27 28
    exit
fi

# TODO: there are more complex distro dependent url
29
epm install "https://zoom.us/client/latest/zoom_$arch.$($DISTRVENDOR -p)"