From c0d7266ff225292c188dc4c40cf4a20e460c62a5 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 20 Feb 2013 13:51:25 +0000 Subject: This is the working version --- teamspeak-client/build/teamspeak-client.SlackBuild | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'teamspeak-client') diff --git a/teamspeak-client/build/teamspeak-client.SlackBuild b/teamspeak-client/build/teamspeak-client.SlackBuild index d1c3e113..1496f705 100755 --- a/teamspeak-client/build/teamspeak-client.SlackBuild +++ b/teamspeak-client/build/teamspeak-client.SlackBuild @@ -40,6 +40,7 @@ # ----------------------------------------------------------------------------- PRGNAM=teamspeak-client +SRCNAM=TeamSpeak3-Client-linux VERSION=${VERSION:-3.0.9.2} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} @@ -63,8 +64,8 @@ TMP=${TMP:-/tmp/build} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -SOURCE="$SRCDIR/TeamSpeak3-Client-linux_${PARCH}-${VERSION}.run" -SRCURL="http://ftp.4players.de/pub/hosted/ts3/releases/${VERSION}/TeamSpeak3-Client-linux_${PARCH}-${VERSION}.run" +SOURCE="$SRCDIR/${SRCNAM}_${PARCH}-${VERSION}.run" +SRCURL="http://ftp.4players.de/pub/hosted/ts3/releases/${VERSION}/${SRCNAM}_${PARCH}-${VERSION}.run" ## ## --- with a little luck, you won't have to edit below this point --- ## @@ -126,7 +127,7 @@ echo "Extracting the source archive(s) for $PRGNAM..." # Need to manually accept a license: sh ${SOURCE} - +cd ${SRCNAM}_${PARCH} chown -R root:root . chmod -R u+w,go+r-w,a+X-s . @@ -138,7 +139,7 @@ cp -R * ${PKG}/opt/teamspeak3-client/ # Install a wrapper script: mkdir -p $PKG/usr/bin -cp -a %SRCDIR/teamspeak3 $PKG/usr/bin/ +cp -a $SRCDIR/teamspeak3 $PKG/usr/bin/ chmod 755 $PKG/usr/bin/teamspeak3 # Rename the binary, we will call this binary from within our wrapper script: @@ -146,7 +147,7 @@ mv ${PKG}/opt/teamspeak3-client/ts3client_linux_* ${PKG}/opt/teamspeak3-client/t # Create a desktop menu entry: mkdir -p $PKG/usr/share/{applications,pixmaps} -cp -ia /opt/teamspeak3-client/gfx/default/24x24_connect.png \ +cp -ia $PKG/opt/teamspeak3-client/gfx/default/24x24_connect.png \ $PKG/usr/share/pixmaps/teamspeak.png cat < $PKG/usr/share/applications/teamspeak3.desktop [Desktop Entry] -- cgit v1.2.3-65-gdbad