Commit ecad1189 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add teamspeak3

parent d8e09d16
#!/bin/sh
TAR="$1"
#VERSION="$2"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
mkdir -p opt/$PRODUCT && cd opt/$PRODUCT || fatal
sh $TAR --tar xvf || exit
chmod a+rX -R *
# Remove bundled libraries (embedded Qt needs libevent-2.1.so.7
false && rm -rfv qt.conf *.so* \
platforms xcbglintegrations \
iconengines imageformats \
qtwebengine_locales \
sqldrivers \
QtWebEngineProcess \
ts3client_runscript.sh
rm -v update
cd - >/dev/null
# TeamSpeak3-Client-linux_amd64-3.6.0.run
VERSION="$(echo $TAR | sed -e 's|.*-||' -e 's|\..*||')"
PKGNAME=$PRODUCT-$VERSION
erc a $PKGNAME.tar opt/$PRODUCT
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=teamspeak3
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="TeamSpeak3 Client for Linux from the official site"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION=3.6.0
PKGURL="https://files.teamspeak-services.com/releases/client/$VERSION/TeamSpeak3-Client-linux_amd64-$VERSION.run"
epm pack --install $PKGNAME "$PKGURL"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Video|" $SPEC
#subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst "s|^URL:.*|URL: http://www.teamspeak.com|" $SPEC
subst "s|^Summary:.*|Summary: TeamSpeak is software for quality voice communication via the Internet|" $SPEC
#UNIREQUIRES="libquazip1-qt5.so.1.0.0"
add_bin_link_command $PRODUCT $PRODUCTDIR/ts3client_runscript.sh
#add_bin_link_command $PRODUCT $PRODUCTDIR/ts3client_linux_amd64
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Encoding=UTF-8
Name=TeamSpeak 3
GenericName=TeamSpeak 3 - Voice communication
Comment=TeamSpeak is software for quality voice communication via the Internet
Exec=teamspeak3
Icon=teamspeak3
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;Application
StartupWMClass=TeamSpeak 3
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
install_file "https://aur.archlinux.org/cgit/aur.git/plain/teamspeak3.png?h=teamspeak3-wbundled" /usr/share/pixmaps/$PRODUCT.png
# hack, todo: update libevent in p10
get_libevent()
{
local libdir
for libdir in /usr/lib/x86_64-linux-gnu /usr/lib64 /lib64 ; do
basename $(ls $libdir/libevent-2.1.so.[0-9] 2>/dev/null) 2>/dev/null
done | head -n1
}
libevent="$(get_libevent)"
[ -n "$libevent" ] || fatal "libevent is missed, install it before"
if [ "$libevent" != "libevent-2.1.so.7" ] && epm assure patchelf ; then
patchelf --replace-needed libevent-2.1.so.7 $libevent .$PRODUCTDIR/libQt5WebEngineCore.so.5
# Fix libquazip1-qt5.so name
#patchelf --replace-needed libquazip.so libquazip1-qt5.so.1.0.0 .$PRODUCTDIR/ts3client_linux_amd64
fi
# hack, todo: update libevent in p10
get_libevent()
{
local libdir
for libdir in /usr/lib/x86_64-linux-gnu /usr/lib64 /lib64 ; do
basename $(ls $libdir/libevent-2.1.so.[0-9] 2>/dev/null) 2>/dev/null
done | head -n1
}
get_libevent
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment