diff options
author | Willy Sudiarto Raharjo <willysr@slackware-id.org> | 2013-02-17 23:42:49 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-02-22 22:29:39 -0600 |
commit | 4a831c7fd4326009b2e34ef7515e0208ad04341e (patch) | |
tree | b71717c993c98cad900deabf70818bfe9ce5bf89 /network/teamviewer/teamviewer.SlackBuild | |
parent | 158c9b7f67810a905ed0d2ae6bb0786b1630e49c (diff) | |
download | slackbuilds-4a831c7fd4326009b2e34ef7515e0208ad04341e.tar.gz |
network/teamviewer: Updated for version 8.0.17147.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/teamviewer/teamviewer.SlackBuild')
-rw-r--r-- | network/teamviewer/teamviewer.SlackBuild | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild index 6cb3510914..6d716c18b7 100644 --- a/network/teamviewer/teamviewer.SlackBuild +++ b/network/teamviewer/teamviewer.SlackBuild @@ -23,8 +23,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by Willy Sudiarto Raharjo +# Changelog +# January 9, Upgraded to 8.0.16675, added rc.teamviewerd to provide teamviewer daemon +# January 12, Rebuilt to create symlink in /usr/bin, thanks to Ponce +# January 17, Rebuilt to change the default behaviour on rc.teamviewerd when no parameter is given +# February 16: Upgraded to 8.0.17147 + PRGNAM=teamviewer -VERSION=${VERSION:-7.0.9377} +VERSION=${VERSION:-8.0.17147} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -43,7 +50,7 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then DEBARCH="" - LIBDIRSUFFIX="" # Just in case + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then DEBARCH="_x64" LIBDIRSUFFIX="64" @@ -61,9 +68,6 @@ if [ "$VERSION" != "$REAL_VER" ]; then exit 1 fi -# We need this for later use -MAIN_VER=$(echo $VERSION | cut -d . -f 1) - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $PKG @@ -81,21 +85,30 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ # Make a .desktop file mkdir -p $PKG/usr/share/applications -cat $PKG/opt/teamviewer/teamviewer/$MAIN_VER/desktop/teamviewer.desktop.template \ +cat $PKG/opt/teamviewer8/tv_bin/desktop/teamviewer-teamviewer8.desktop \ | sed -e 's/EXEC/teamviewer/' -e 's/ICON/teamviewer/' \ > $PKG/usr/share/applications/teamviewer.desktop -# Create the generic executable -( cd $PKG/usr/bin; ln -sf teamviewer$MAIN_VER teamviewer ) +# Remove the dangling symlink first +rm $PKG/usr/bin/teamviewer + +# Re-create the generic executable +( cd $PKG/usr/bin; ln -s /opt/teamviewer8/tv_bin/script/teamviewer 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 +ln -sf /opt/teamviewer8/tv_bin/desktop/teamviewer.png $PKG/usr/share/pixmaps/teamviewer.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION # Move docs to official place -mv $PKG/opt/teamviewer/teamviewer/$MAIN_VER/*.txt $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/opt/teamviewer8/*.txt $PKG/usr/doc/$PRGNAM-$VERSION + +mkdir -p $PKG/etc/rc.d/ +install -m 0644 $CWD/rc.teamviewerd $PKG/etc/rc.d/rc.teamviewerd.new + +# Remove duplicate file +rm -f $PKG/opt/teamviewer8/tv_bin/xdg-utils/xdg-email~ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |