commit:     2e16fb7bac342a3723b4b609f2e9dffda91ca2d8
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Wed Jun 19 21:19:51 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jun 25 20:11:24 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e16fb7b

media-sound/teamspeak-client: bump to version 3.3.0

Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Closes: https://github.com/gentoo/gentoo/pull/12287
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-sound/teamspeak-client/Manifest              |   2 +
 .../teamspeak-client/files/ts3client-bin-r2        |  10 ++
 .../teamspeak-client/teamspeak-client-3.3.0.ebuild | 101 +++++++++++++++++++++
 3 files changed, 113 insertions(+)

diff --git a/media-sound/teamspeak-client/Manifest 
b/media-sound/teamspeak-client/Manifest
index f97f1f541dd..590d0dfae8e 100644
--- a/media-sound/teamspeak-client/Manifest
+++ b/media-sound/teamspeak-client/Manifest
@@ -1,2 +1,4 @@
 DIST TeamSpeak3-Client-linux_amd64-3.2.5.run 76619678 BLAKE2B 
b8d42a4d633124cab395ea69d3ccbebc65f4d9b5a148c6a81a6d9a3afab48dd59fd99ac3f5cc9551c89daabb7cc51a60c5587034a7a5bec5e3b530ecb3d6e220
 SHA512 
fdfaa863d3523fffdf46ca0cf9c2b0588e8d847e348ade75c8f82818920f493460740a5192d4cc8d1eafe1e7a03af93b09ae6ddecaa0b166552ab5409508a445
+DIST TeamSpeak3-Client-linux_amd64-3.3.0.run 95624376 BLAKE2B 
0e6129ef32e43bbea18c9a047af3599f96975dbdbfd9ff22a9f3cea60eaf5841eacf8b396b855819fa06787a4f192aadcf2cd76b3873b48021fdd3e7fd99b371
 SHA512 
477ced3deb4d4226817bf1f4ec0828123c027027160cdc62a6384583227c153168ec28025613380483229e2a8b3c30bf5b17337c3011e52f01317a9f0dbd4bbb
 DIST TeamSpeak3-Client-linux_x86-3.2.5.run 76311914 BLAKE2B 
4a8f4a6ce55bde680f2d9d1f28c1cabe2a01fa6c10f3f3f637931dbe2f652c87cd2a7b61f054b50a8faf3bce461e316ca2e9b68418271535a5f6a3cd0b9d3492
 SHA512 
90b46a840a6e43bbc7d4cfb526117a81cdb92fb8186194ab9f245e8e501608ec4740a198e8d1de5e3f69bea84ab6281384915193d4e6a1e90aff45b4b80d3d9a
+DIST TeamSpeak3-Client-linux_x86-3.3.0.run 94313517 BLAKE2B 
f806d23f3039cc30a6bf09945f7041bb271040419b5221d663b0119873edd08bfa4f57befc4e8f53efc12f5b9d4c423bc1706e48f6194f4df89392db6b4cff9f
 SHA512 
b5696ed18fe31b3051c5346ceb1bb06ceb0abafb1f87767a696961836a02804cd92a1aabccd24959b37962162bdc2bcfbf5ccd0ebe44b1816b832f7b018c5588

diff --git a/media-sound/teamspeak-client/files/ts3client-bin-r2 
b/media-sound/teamspeak-client/files/ts3client-bin-r2
new file mode 100644
index 00000000000..c59e278f390
--- /dev/null
+++ b/media-sound/teamspeak-client/files/ts3client-bin-r2
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Sets BASEDIR for teamspeak3-client
+BASEDIR="/opt/teamspeak3-client"
+
+# Work around DT_RPATH (.) security issue by chdir'ing into expected 
$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
+
+# Launch teamspeak3-client
+cd "${BASEDIR}" && exec "${BASEDIR}/ts3client" $*

diff --git a/media-sound/teamspeak-client/teamspeak-client-3.3.0.ebuild 
b/media-sound/teamspeak-client/teamspeak-client-3.3.0.ebuild
new file mode 100644
index 00000000000..9e873515c3b
--- /dev/null
+++ b/media-sound/teamspeak-client/teamspeak-client-3.3.0.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop toolchain-funcs unpacker xdg-utils
+
+MY_PV="${PV/_/-}"
+
+DESCRIPTION="A client software for quality voice communication via the 
internet"
+HOMEPAGE="https://www.teamspeak.com/";
+SRC_URI="
+       amd64? ( 
https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_amd64-${MY_PV}.run
 )
+       x86? ( 
https://files.teamspeak-services.com/releases/client/${PV}/TeamSpeak3-Client-linux_x86-${MY_PV}.run
 )
+"
+
+KEYWORDS="-* ~amd64 ~x86"
+LICENSE="teamspeak3 || ( GPL-2 GPL-3 LGPL-3 )"
+SLOT="0"
+IUSE="alsa pulseaudio"
+REQUIRED_USE="|| ( alsa pulseaudio )"
+
+RDEPEND="
+       app-arch/snappy:0/1
+       dev-libs/openssl:0
+       dev-libs/quazip
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5[accessibility,dbus,xcb]
+       dev-qt/qtnetwork:5
+       dev-qt/qtsql:5[sqlite]
+       dev-qt/qtsvg:5
+       dev-qt/qtwebchannel:5
+       dev-qt/qtwebengine:5[geolocation,widgets]
+       dev-qt/qtwidgets:5
+       net-libs/libsrtp:0
+       sys-libs/libcxx[libcxxabi]
+       sys-libs/zlib:0/1
+       virtual/udev
+       alsa? ( media-libs/alsa-lib )
+       pulseaudio? ( media-sound/pulseaudio )
+"
+
+RESTRICT="mirror"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="
+       opt/teamspeak3-client/error_report
+       opt/teamspeak3-client/package_inst
+       opt/teamspeak3-client/soundbackends/libalsa_linux_*.so
+       opt/teamspeak3-client/soundbackends/libpulseaudio_linux_*.so
+       opt/teamspeak3-client/ts3client
+       opt/teamspeak3-client/update
+"
+
+src_prepare() {
+       default
+
+       if ! use alsa; then
+               rm -f soundbackends/libalsa_linux_*.so || die
+       fi
+
+       if ! use pulseaudio ; then
+               rm -f soundbackends/libpulseaudio_linux_*.so || die
+       fi
+
+       mv ts3client_linux_* ts3client || die
+
+       tc-export CXX
+}
+
+src_install() {
+       exeinto /opt/teamspeak3-client
+       doexe error_report package_inst ts3client update
+       newexe "${FILESDIR}"/ts3client-bin-r2 ts3client-bin
+
+       exeinto /opt/teamspeak3-client/soundbackends
+       doexe soundbackends/*.so
+
+       insinto /opt/teamspeak3-client
+       doins -r gfx html resources sound styles translations
+
+       dosym ../../usr/$(get_libdir)/qt5/libexec/QtWebEngineProcess 
/opt/teamspeak3-client/QtWebEngineProcess
+
+       dodir /opt/bin
+       dosym ../teamspeak3-client/ts3client-bin /opt/bin/ts3client
+
+       make_desktop_entry /opt/bin/ts3client "Teamspeak 3 Client" 
/opt/teamspeak3-client/styles/default/logo-128x128.png 
"Audio;AudioVideo;Network"
+
+       einstalldocs
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}

Reply via email to