Commit e9a59af7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play zoom: rewrite with VERSION using

parent df88f1d7
......@@ -2,28 +2,27 @@
PKGNAME=zoom
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION="Zoom client from the official site"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION="latest"
arch=$(epm print info --distro-arch)
case $arch in
x86_64|amd64)
version=latest
arch=$arch ;;
i586|i386)
# latest does not work
version=5.4.53391.1108
VERSION=5.4.53391.1108
arch=i686 ;;
*)
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
if [ "$(epm print info -s)" = "alt" ] ; then
epm install --repack https://zoom.us/client/$version/zoom_$arch.rpm
exit
fi
repack=''
[ "$(epm print info -s)" = "alt" ] && repack="--repack"
# TODO: there are more complex distro dependent url
epm install "https://zoom.us/client/latest/zoom_$arch.$(epm print info -p)"
epm install $repack "https://zoom.us/client/$VERSION/zoom_$arch.$(epm print info -p)"
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