anydesk.sh 906 Bytes
Newer Older
1 2 3
#!/bin/sh

PKGNAME=anydesk
4
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION="AnyDesk from the official site"
7

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

10
warn_version_is_not_supported
11

12
# current links:
13 14 15 16 17
# https://download.anydesk.com/linux/anydesk_6.3.2-1_x86_64.rpm
# https://download.anydesk.com/linux/anydesk-6.3.2-1.el8.x86_64.rpm
# https://download.anydesk.com/linux/anydesk_6.3.2-1_amd64.deb

[ "$VERSION" = "*" ] || VERSION="$VERSION-1"
18

19
#PKGMASK="$(epm print constructname $PKGNAME "$VERSION" '' '' '_')"
20

21 22 23
#[ "$(epm print info -s)" = "alt" ] && 
# use el8 build for all systems
PKGMASK="$(epm print constructname $PKGNAME "$VERSION.el8")"
24

25
if [ "$VERSION" = "*" ] ; then
26
    PKGURL="$(eget --list --latest https://download.anydesk.com/linux/$PKGMASK)"
27 28 29
else
    PKGURL="https://download.anydesk.com/linux/$PKGMASK"
fi
30

31
install_pkgurl
32 33 34 35 36 37

echo
echo "Note: run
# serv anydesk on
to enable needed anydesk system service
"