Commit b761280c authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add teamspeak5

parent ecad1189
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
[ "$(basename $TAR)" = "teamspeak-client.tar.gz" ] || fatal "Unsupported $TAR"
erc $TAR || fatal
mkdir -p opt
mv teamspeak-client.tar opt/TeamSpeak
PKGNAME=$PRODUCT-$VERSION
erc a $PKGNAME.tar opt/TeamSpeak
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=teamspeak5
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="TeamSpeak5 Client for Linux from the official site"
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] && VERSION=5.0.0-beta73
PKGURL="https://files.teamspeak-services.com/pre_releases/client/$VERSION/teamspeak-client.tar.gz"
epm pack --install $PKGNAME "$PKGURL" $VERSION
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCTCUR=TeamSpeak
PRODUCTDIR=/opt/$PRODUCTCUR
. $(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
add_bin_link_command $PRODUCTCUR $PRODUCTDIR/TeamSpeak
add_bin_link_command $PRODUCT $PRODUCTCUR
add_electron_deps
fix_chrome_sandbox
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Encoding=UTF-8
Name=TeamSpeak 5
GenericName=TeamSpeak 5 - Voice communication
Comment=TeamSpeak is software for quality voice communication via the Internet
Exec=teamspeak5
Icon=teamspeak5
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;Application
StartupWMClass=TeamSpeak 5
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
install_file .$PRODUCTDIR/logo-128.png /usr/share/pixmaps/$PRODUCT.png
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