You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.9 KiB
63 lines
1.9 KiB
#!/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
|
|
|