diff options
author | Binh Nguyen <binhnguyen@fastmail.fm> | 2011-03-04 15:45:10 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-08 12:14:44 -0600 |
commit | 98795f943000e70eff92be47112c1cbbfe0a3399 (patch) | |
tree | fa2d8d5be1807214681e83367bc1580db77d184f /network/teamviewer/teamviewer.SlackBuild | |
parent | f5b4808bb16b23740227d72da9e8fb7789c80e15 (diff) |
network/teamviewer: Fixed binary name so menu entries keep working
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/teamviewer/teamviewer.SlackBuild')
-rw-r--r-- | network/teamviewer/teamviewer.SlackBuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild index 6a660a1d1af0a..b7c747bdccccc 100644 --- a/network/teamviewer/teamviewer.SlackBuild +++ b/network/teamviewer/teamviewer.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for teamviewer -# Copyright 2010 Binh Nguyen <binhnguyen@fastmail.fm> +# Copyright 2010-2011 Binh Nguyen <binhnguyen@fastmail.fm> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=teamviewer VERSION=${VERSION:-6.0.9224} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -64,6 +64,9 @@ mkdir -p $TMP $PKG $OUTPUT cd $PKG ar p $CWD/teamviewer_linux${DEBARCH}.deb data.tar.gz | gzip -d | tar xv +# Remove the upstream's version-specific executable +rm -f usr/bin/* + chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -80,6 +83,9 @@ cat $PKG/opt/teamviewer/teamviewer/$MAIN_VER/desktop/teamviewer-teamviewer.deskt | sed -e 's/EXEC/teamviewer/' -e 's/ICON/teamviewer/' \ > $PKG/usr/share/applications/teamviewer.desktop +# Create the generic executable +ln -sf /opt/teamviewer/teamviewer/$MAIN_VER/bin/teamviewer $PKG/usr/bin/teamviewer + # Link icon to /usr/share/pixmaps mkdir -p $PKG/usr/share/pixmaps ln -sf /opt/teamviewer/teamviewer/$MAIN_VER/desktop/teamviewer.png $PKG/usr/share/pixmaps/teamviewer.png |