Starting from v3.5.6

master
Meliurwen 3 years ago
commit 16854509dd
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 4
      .gitignore
  2. 14
      README.md
  3. 1109
      copyright
  4. 63
      main.sh
  5. 1
      sha512sum
  6. 12
      teamspeak3-client.desktop
  7. BIN
      teamspeak3-client.png
  8. BIN
      ts3_logo.ico
  9. 47
      ts3client_runscript.sh

4
.gitignore vendored

@ -0,0 +1,4 @@
archive/
debian/
tree/
TeamSpeak3-Client-linux_*

@ -0,0 +1,14 @@
# TeamSpeak 3 Client
Run:
```sh
./main.sh
```
## References
+ https://github.com/archlinux/svntogit-community/blob/packages/teamspeak3/trunk/PKGBUILD
+ https://launchpad.net/~beardoverflow/+archive/ubuntu/ts3client/+packages
+ https://reddit.com/fpuat3
+ https://stackoverflow.com/questions/2604964/binary-sed-replacement

File diff suppressed because it is too large Load Diff

@ -0,0 +1,63 @@
#!/bin/sh
set -e
prepare() {
mkdir archive && cd archive
sh "${srcdir}"/TeamSpeak3-Client-linux_amd64-${pkgver}.run --tar -xf 2>/dev/null
# Fix permissions
find -type d | xargs chmod 755
find -type f | xargs chmod 644
find -name '*.so*' | xargs chmod 755
chmod +x ts3client* package_inst QtWebEngineProcess
cd ..
}
package() {
install -d "${pkgdir}"/usr/bin/
install -d "${pkgdir}"/opt/teamspeak3-client
cp -r archive/* ${pkgdir}/opt/teamspeak3-client/
install -D -m644 "${srcdir}"/teamspeak3-client.desktop "${pkgdir}"/usr/share/applications/teamspeak3-client.desktop
install -D -m644 "${srcdir}"/teamspeak3-client.png "${pkgdir}"/usr/share/pixmaps/teamspeak3-client.png
ln -s /opt/teamspeak3-client/ts3client_runscript.sh "${pkgdir}"/usr/bin/teamspeak3-client
# Fix a weird change that TS3 did which broke symlinks.
# Check: https://forum.teamspeak.com/threads/134617-Linux-client-not-starting-when-run-though-symlink-since-3-1-8?p=454315#post454315
sed -i "s|cd.*|cd /opt/teamspeak3-client|" "${pkgdir}"/opt/teamspeak3-client/ts3client_runscript.sh
# Inhibit the ability to check for updates
bbe -e 's/versions.teamspeak.com/tkfhzvtf.hyydcywqg.znx/' "${pkgdir}"/opt/teamspeak3-client/ts3client_linux_amd64 > "${pkgdir}"/opt/teamspeak3-client/ts3client_linux_amd64.new
mv "${pkgdir}"/opt/teamspeak3-client/ts3client_linux_amd64.new "${pkgdir}"/opt/teamspeak3-client/ts3client_linux_amd64
chmod +x "${pkgdir}"/opt/teamspeak3-client/ts3client_linux_amd64
}
pkgver=3.5.6
srcdir="$PWD"
wget "https://files.teamspeak-services.com/releases/client/${pkgver}/TeamSpeak3-Client-linux_amd64-${pkgver}.run" -O "TeamSpeak3-Client-linux_amd64-${pkgver}.run"
cat sha512sum | sha512sum -c
prepare
pkgdir="tree"
package
dh_make --native \
-i \
--packagename teamspeak3-client_${pkgver} \
--email meliurwen@gmail.com \
-c custom --copyrightfile=../copyright \
--yes
printf "${pkgdir}/* /" > debian/install
dpkg-buildpackage

@ -0,0 +1 @@
fe1b41773d2b2de8198fdaf189c6665994eeaf6a0255485f7d342a3e77702f5515d5c5c685410a0b5844b4ad5c395d57b68e57c7b1f46bd1211ef813ce1e0030 TeamSpeak3-Client-linux_amd64-3.5.6.run

@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=TeamSpeak 3
Comment=VoIP Communicator
Icon=teamspeak3-client
Exec=teamspeak3-client
NoDisplay=false
Categories=Network;Application;
Keywords=TeamSpeak;Team Speak;ts3;ts;ts3 client;VOIP;chat;gaming;voice
StartupNotify=false
Terminal=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

@ -0,0 +1,47 @@
#!/bin/bash
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
#If the bundled openssl is used, the app needs to find out where the CA certs
#are located. This needs to be done with the help of openssl installed on the
#system, before we include "." in the LD_LIBRARY_PATH.
#First test if the bundled libssl is used
#If bundeled libssl is used and SSL_CERT_FILE and SSL_CERT_DIR are not already set.
if [ -f "./libssl.so.1.0.0" -a -x "$(command -v openssl)" -a -z "${SSL_CERT_FILE+x}" -a -z "${SSL_CERT_DIR+x}" ]
then
#Set them to sane defaults.
#Get ssl dir according to system openssl
OPENSSL_DIR=`openssl version -d | grep -Po '(?<=\").*(?=\")'`
#Is cert.pem located there?
if [ -f "${OPENSSL_DIR}/cert.pem" ]
then
#Use this file
export SSL_CERT_FILE=${OPENSSL_DIR}/cert.pem
#Is certs dir located there?
elif [ -d "${OPENSSL_DIR}/certs" ]
then
#Use this dir
export SSL_CERT_DIR=${OPENSSL_DIR}/certs
else
#An unknown configuration was found. Or openssl/ca certificates were not
#installed
echo "Could not find CA certificates location"
exit 3
fi
fi
export KDEDIRS=
export KDEDIR=
export QTDIR=.
export QT_PLUGIN_PATH=.
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
if [ -e ts3client_linux_x86 ]; then
./ts3client_linux_x86 $@
else
./ts3client_linux_amd64 $@
fi
Loading…
Cancel
Save