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.
77 lines
2.0 KiB
77 lines
2.0 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Header: /var/cvsroot/gentoo-x86/media-sound/teamspeak-client-bin/teamspeak-client-bin-3.0.16-r1.ebuild,v 1.1 2015/05/13 15:09:35 mgorny Exp $
|
||
11 years ago
|
|
||
|
EAPI="5"
|
||
|
|
||
|
inherit eutils unpacker
|
||
|
|
||
|
DESCRIPTION="TeamSpeak Client - Voice Communication Software"
|
||
|
HOMEPAGE="http://www.teamspeak.com/"
|
||
9 years ago
|
SRC_URI="
|
||
|
amd64? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_amd64-${PV/_/-}.run )
|
||
|
x86? ( http://ftp.4players.de/pub/hosted/ts3/releases/${PV}/TeamSpeak3-Client-linux_x86-${PV/_/-}.run )"
|
||
11 years ago
|
|
||
9 years ago
|
LICENSE="teamspeak3"
|
||
11 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="alsa pulseaudio"
|
||
|
|
||
|
REQUIRED_USE="|| ( alsa pulseaudio )"
|
||
|
|
||
9 years ago
|
RDEPEND="
|
||
9 years ago
|
dev-libs/quazip:0/0[qt5]
|
||
9 years ago
|
dev-qt/qtcore:5
|
||
|
dev-qt/qtgui:5[accessibility]
|
||
|
dev-qt/qtnetwork:5
|
||
|
dev-qt/qtsql:5[sqlite]
|
||
|
dev-qt/qtwidgets:5
|
||
11 years ago
|
sys-libs/glibc
|
||
|
sys-libs/zlib
|
||
|
alsa? ( media-libs/alsa-lib )
|
||
|
pulseaudio? ( media-sound/pulseaudio )"
|
||
|
|
||
9 years ago
|
RESTRICT="fetch mirror strip"
|
||
|
|
||
11 years ago
|
S="${WORKDIR}"
|
||
|
|
||
|
pkg_nofetch() {
|
||
9 years ago
|
elog "Please download ${A}"
|
||
|
elog "from ${HOMEPAGE}?page=downloads and place this"
|
||
|
elog "file in ${DISTDIR}"
|
||
11 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
# Remove the qt-libraries as they just cause trouble with the system's Qt, see bug #328807.
|
||
|
rm libQt* || die "Couldn't remove bundled Qt libraries."
|
||
9 years ago
|
rm -r accessible platforms sqldrivers qt.conf || die "Couldn't remove bundle Qt files."
|
||
11 years ago
|
|
||
|
# Remove unwanted soundbackends.
|
||
|
if ! use alsa ; then
|
||
|
rm soundbackends/libalsa* || die
|
||
|
fi
|
||
|
|
||
|
if ! use pulseaudio ; then
|
||
|
rm soundbackends/libpulseaudio* || die
|
||
|
fi
|
||
|
|
||
9 years ago
|
# Remove quazip
|
||
|
rm libquazip.so.1 || die
|
||
|
|
||
11 years ago
|
# Rename the tsclient to its shorter version, required by the teamspeak3 script we install.
|
||
|
mv ts3client_linux_* ts3client || die "Couldn't rename ts3client to its shorter version."
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
insinto /opt/teamspeak3-client
|
||
|
doins -r *
|
||
|
|
||
|
fperms +x /opt/teamspeak3-client/ts3client
|
||
|
|
||
9 years ago
|
dobin "${FILESDIR}/teamspeak3"
|
||
11 years ago
|
|
||
|
make_desktop_entry teamspeak3 TeamSpeak3 \
|
||
|
"/opt/teamspeak3-client/pluginsdk/docs/client_html/images/logo.png" \
|
||
|
Network
|
||
|
}
|