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

3
PKGNAME=zoom
4
SUPPORTEDARCHES="x86_64 x86"
5
VERSION="$2"
6
DESCRIPTION="Zoom client from the official site"
7
URL="https://zoom.us"
8

9
. $(dirname $0)/common.sh
10

11
[ "$VERSION" = "*" ] && VERSION="latest"
12

13
arch=$(epm print info --distro-arch)
14 15 16 17
case $arch in
    x86_64|amd64)
        arch=$arch ;;
    i586|i386)
18
        # latest does not work
19
        VERSION=5.4.53391.1108
20
        arch=i686 ;;
21
    *)
22
        fatal "Unsupported arch $arch for $(epm print info -d)"
23 24 25
esac

# TODO: there are more complex distro dependent url
26
PKGURL="https://zoom.us/client/$VERSION/zoom_$arch.$(epm print info -p)"
27 28

install_pkgurl