summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-02-28 00:13:31 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-02 19:12:13 +0700
commit4b478f0fc90f3fb8ee3558c44b14a6b468d4853b (patch)
tree4ef8f1a4478079996b7ceed563845a82581fca78 /network
parent7bf9b201577b04f0c38f8436281db4c8ee6057cc (diff)
downloadslackbuilds-4b478f0fc90f3fb8ee3558c44b14a6b468d4853b.tar.gz
network/teamviewer: Support alternate tarball name.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/teamviewer/teamviewer.SlackBuild26
1 files changed, 15 insertions, 11 deletions
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild
index 821a1d3eaa..0d3cb8211a 100644
--- a/network/teamviewer/teamviewer.SlackBuild
+++ b/network/teamviewer/teamviewer.SlackBuild
@@ -45,13 +45,13 @@ OUTPUT=${OUTPUT:-/tmp}
# Sanity check, we make sure resulting package will work on users system.
case "$ARCH" in
+ i?86)
+ :
+ ;;
x86_64)
echo "$ARCH is not supported, you will need 32bit compatibility libs..."
ARCH=i486
;;
- i486)
- echo "System check passed..."
- ;;
*)
echo "$ARCH is not supported."
exit 1
@@ -63,17 +63,21 @@ LIBDIRSUFFIX=""
set -eu
-# Get the real version
-REAL_VER=$(ar p teamviewer_${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
-fi
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-ar p $CWD/teamviewer_${DEBARCH}.deb data.tar.bz2 | tar xjv
+
+if [ -f $CWD/teamviewer_${DEBARCH}.deb ]; then
+ # Get the real version
+ REAL_VER=$(ar p $CWD/teamviewer_${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
+ fi
+ ar p $CWD/teamviewer_${DEBARCH}.deb data.tar.bz2 | tar xjv
+else
+ ar p $CWD/teamviewer_${VERSION}_${DEBARCH}.deb data.tar.bz2 | tar xjv
+fi
chown -R root:root .
find -L . \