56 lines
1.6 KiB
Bash
56 lines
1.6 KiB
Bash
# Template file for 'teamspeak3'
|
|
pkgname=teamspeak3
|
|
version=3.1.10
|
|
revision=1
|
|
wrksrc=teamspeak3
|
|
repository="nonfree"
|
|
nopie=yes
|
|
restricted=yes
|
|
create_wrksrc=yes
|
|
short_desc="Popular proprietary voice chat for gaming"
|
|
maintainer="Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>"
|
|
license="Proprietary"
|
|
homepage="http://www.teamspeak.com/"
|
|
only_for_archs="i686 x86_64"
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
_pkg="TeamSpeak3-Client-linux_amd64-${version}"
|
|
distfiles="http://dl.4players.de/ts/releases/${version}/${_pkg}.run"
|
|
checksum=63f3781c1f49ccc26368d9238a3e2aeca0e57dcb65a1c4022341ad7e8ba4fe9d
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
_pkg="TeamSpeak3-Client-linux_x86-${version}"
|
|
distfiles="http://dl.4players.de/ts/releases/${version}/${_pkg}.run"
|
|
checksum=53e83aea770c53d3a513b50d4f041915d3ac1ec997638505c87c1c96a71f76ae
|
|
else
|
|
broken="No known upstream client for this architecture"
|
|
fi
|
|
|
|
do_extract() {
|
|
install -m755 ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_pkg}.run ${wrksrc}
|
|
cd ${wrksrc}
|
|
sh ./${_pkg}.run --tar -xf 2>/dev/null
|
|
rm -f ${_pkg}.run
|
|
}
|
|
|
|
do_install() {
|
|
# Set proper permissions
|
|
find -type d | xargs chmod 755
|
|
find -type f | xargs chmod 644
|
|
find -name *.so | xargs chmod 755
|
|
chmod +x ts3client*
|
|
|
|
vmkdir "usr/share/teamspeak3"
|
|
vcopy * "usr/share/teamspeak3"
|
|
|
|
# Install desktop file
|
|
vinstall "${FILESDIR}/teamspeak3.desktop" 644 "usr/share/applications"
|
|
|
|
# Install icon file
|
|
vinstall styles/default/logo-128x128.png 644 usr/share/pixmaps/teamspeak3.png
|
|
|
|
# Install the license (not present in most recent version)
|
|
# vlicense LICENSE
|
|
|
|
# Install client launcher
|
|
vbin "${FILESDIR}/teamspeak3"
|
|
}
|