Commit 90fc6779 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play teamspeak3: fix version

parent 7b5b8363
...@@ -29,7 +29,7 @@ cp usr/lib64/* opt/$PRODUCT ...@@ -29,7 +29,7 @@ cp usr/lib64/* opt/$PRODUCT
rm libwebp6-0.5.2-alt2.x86_64.rpm rm libwebp6-0.5.2-alt2.x86_64.rpm
# TeamSpeak3-Client-linux_amd64-3.6.0.run # TeamSpeak3-Client-linux_amd64-3.6.0.run
VERSION="$(echo $TAR | sed -e 's|.*-||' -e 's|\..*||')" VERSION="$(echo $TAR | sed -e 's|.*-||' -e 's|\.run||')"
PKGNAME=$PRODUCT-$VERSION PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar opt || fatal erc pack $PKGNAME.tar opt || fatal
......
...@@ -9,9 +9,9 @@ URL="https://www.teamspeak.com/" ...@@ -9,9 +9,9 @@ URL="https://www.teamspeak.com/"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -O- https://teamspeak.com/en/downloads/#ts3client | grep -oP 'https://files\.teamspeak-services\.com/releases/client/3\.\d+\.\d+/TeamSpeak3-Client-linux_amd64-3\.(\d+\.\d+)\.run' | head -n 1 | grep -oP '3\.(\d+\.\d+)' | head -n 1) PKGURL=$(eget --list --latest https://teamspeak.com/en/downloads/#ts3client "TeamSpeak3-Client-linux_amd64-*.run")
else
PKGURL="https://files.teamspeak-services.com/releases/client/$VERSION/TeamSpeak3-Client-linux_amd64-$VERSION.run"
fi fi
PKGURL="https://files.teamspeak-services.com/releases/client/$VERSION/TeamSpeak3-Client-linux_amd64-$VERSION.run"
install_pack_pkgurl install_pack_pkgurl
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