rudesktop.sh 846 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=rudesktop
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION="RuDesktop for Linux from the official site"
7
URL="https://rudesktop.ru/"
8

9
pkgname="$PKGNAME"
10

11 12
# FIXME: uses global epm
# change package name (like on the site)
13 14
case "$(epm print info -s)" in
  astra)
15 16
      PKGNAME=rudesktop-astra
      ;;
17 18 19 20 21 22 23
  alt)
      pkgname=rudesktop-alt
      ;;
  osnova)
      PKGNAME=rudesktop-astra
      pkgname=rudesktop-osnova
      ;;
24 25
esac

26 27
. $(dirname $0)/common.sh

28
warn_version_is_not_supported
29

30 31 32 33 34 35 36 37 38
case "$(epm print info -p)" in
  rpm)
      pkgtype=rpm
      ;;
  *)
      pkgtype=deb
      ;;
esac

39
PKGURL="https://rudesktop.ru/download/$PKGNAME-amd64.$pkgtype"
40
install_pkgurl
41 42 43 44 45 46 47 48 49

echo
echo "Note: run
# serv $PKGNAME on
to enable and start $PKGNAME system service
Use
/usr/bin/rudesktop --rendezvous DOMAIN
to set the domain if needed.
"