diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-12-03 07:42:46 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-12-05 23:43:26 +0700 |
commit | 35adc7933af1dabd96aca88e48b851edaebeea9b (patch) | |
tree | 4545a31372d75bbb47dc76ddab7aa472fa7e93d0 /network/teamviewer/teamviewer.SlackBuild | |
parent | 8c649d01c6b4d4a01be1544cff97f953c5d45628 (diff) | |
download | slackbuilds-35adc7933af1dabd96aca88e48b851edaebeea9b.tar.gz |
network/teamviewer: Updated for version 10.0.36281.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/teamviewer/teamviewer.SlackBuild')
-rw-r--r-- | network/teamviewer/teamviewer.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild index ea5776299a..2d176b5d33 100644 --- a/network/teamviewer/teamviewer.SlackBuild +++ b/network/teamviewer/teamviewer.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=teamviewer -VERSION=${VERSION:-9.0.32150} +VERSION=${VERSION:-10.0.36281} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -42,10 +42,10 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - DEBARCH="" + DEBARCH="i386" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - DEBARCH="_x64" + DEBARCH="amd64" LIBDIRSUFFIX="64" else echo "Package for $(uname -m) architecture is not available." @@ -55,7 +55,7 @@ fi set -eu # Get the real version -REAL_VER=$(ar p teamviewer_linux${DEBARCH}.deb control.tar.gz | tar xzO ./control | grep Version | cut -d\ -f2 | cut -d- -f1) +REAL_VER=$(ar p teamviewer_${VERSION}_${DEBARCH}.deb control.tar.gz | tar xzO ./control | grep Version | cut -d\ -f2 | cut -d- -f1) if [ "$VERSION" != "$REAL_VER" ]; then echo "Version of downloaded source [$REAL_VER] does not match version of SlackBuild [$VERSION]" exit 1 @@ -64,7 +64,7 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $PKG -ar p $CWD/teamviewer_linux${DEBARCH}.deb data.tar.gz | gzip -d | tar xv +ar p $CWD/teamviewer_${VERSION}_${DEBARCH}.deb data.tar.gz | gzip -d | tar xv chown -R root:root . find -L . \ @@ -78,7 +78,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr # Make a .desktop file mkdir -p $PKG/usr/share/applications -cat $PKG/opt/teamviewer9/tv_bin/desktop/teamviewer-teamviewer9.desktop \ +cat $PKG/opt/teamviewer/tv_bin/desktop/teamviewer-teamviewer10.desktop \ | sed -e 's/EXEC/teamviewer/' -e 's/ICON/teamviewer/' \ > $PKG/usr/share/applications/teamviewer.desktop @@ -86,18 +86,18 @@ cat $PKG/opt/teamviewer9/tv_bin/desktop/teamviewer-teamviewer9.desktop \ rm $PKG/usr/bin/teamviewer # Re-create the generic executable -( cd $PKG/usr/bin; ln -s /opt/teamviewer9/tv_bin/script/teamviewer teamviewer ) +( cd $PKG/usr/bin; ln -s /opt/teamviewer/tv_bin/script/teamviewer teamviewer ) # Link icon to /usr/share/pixmaps mkdir -p $PKG/usr/share/pixmaps -( ln -sf /opt/teamviewer9/tv_bin/desktop/teamviewer.png $PKG/usr/share/pixmaps/teamviewer.png ) +( ln -sf /opt/teamviewer/tv_bin/desktop/teamviewer.png $PKG/usr/share/pixmaps/teamviewer.png ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Move docs to official place -mv $PKG/opt/teamviewer9/doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION -rm -rf $PKG/opt/teamviewer9/doc/ +mv $PKG/opt/teamviewer/doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/opt/teamviewer/doc/ mkdir -p $PKG/etc/rc.d/ install -m 0644 $CWD/rc.teamviewerd $PKG/etc/rc.d/rc.teamviewerd.new @@ -106,9 +106,9 @@ install -m 0644 $CWD/rc.teamviewerd $PKG/etc/rc.d/rc.teamviewerd.new # First remove the dangling symlink made by Debian packages: rm -f $PKG/var/log/teamviewer $PKG/etc/teamviewer mkdir -p $PKG/var/log/teamviewer $PKG/etc/teamviewer -rm -rf $PKG/opt/teamviewer9/logfiles/ $PKG/opt/teamviewer9/config/ -ln -s /var/log/teamviewer $PKG/opt/teamviewer9/logfiles -ln -s /etc/teamviewer $PKG/opt/teamviewer9/config +rm -rf $PKG/opt/teamviewer/logfiles/ $PKG/opt/teamviewer/config/ +ln -s /var/log/teamviewer $PKG/opt/teamviewer/logfiles +ln -s /etc/teamviewer $PKG/opt/teamviewer/config mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |