teamspeak.sh 611 Bytes
Newer Older
1 2
#!/bin/sh

3
PKGNAME=teamspeak
4 5
SUPPORTEDARCHES="x86_64"
VERSION="$2"
6
DESCRIPTION="TeamSpeak Client for Linux from the official site"
7
URL="https://www.teamspeak.com/"
8 9 10

. $(dirname $0)/common.sh

11
# Why we need this ?
12
warn_version_is_not_supported
13 14 15 16

if [ "$VERSION" = "*" ] ; then
    VERSION=$(eget -O- https://teamspeak.com/en/downloads/ | grep -oP 'https://files\.teamspeak-services\.com/pre_releases/client/([\.\-beta\d]+)' | head -n 1 | grep -oP '([\.\-beta\d]+)' | tail -n 1)
fi
17 18 19

PKGURL="https://files.teamspeak-services.com/pre_releases/client/$VERSION/teamspeak-client.tar.gz"

20
install_pack_pkgurl "$VERSION"