aboutsummaryrefslogtreecommitdiff
path: root/network/viber/viber.SlackBuild
diff options
context:
space:
mode:
authorRoberto Metere <roberto@metere.it>2015-11-11 16:14:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-11 16:14:42 +0700
commit4a47285bb0db7fd40c476252f8efecac2e5e422e (patch)
treec181fbdcd6b5f9702fe9ba6cfaf45b8bb58e1fda /network/viber/viber.SlackBuild
parent1fc2096b9b8e81107b4b5b12c47167a59f94ad27 (diff)
network/viber: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/viber/viber.SlackBuild')
-rw-r--r--network/viber/viber.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/network/viber/viber.SlackBuild b/network/viber/viber.SlackBuild
index fcf94a5809481..5f23a342001f0 100644
--- a/network/viber/viber.SlackBuild
+++ b/network/viber/viber.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for Viber
-# Copyright 2009-2010 Roberto Metere, Cagliari (CA), Italy
+# Copyright 2014-2015 Roberto Metere, Cagliari (CA), Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=viber
VERSION=${VERSION:-4.2.2.6}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
case "$(uname -m)" in
@@ -51,18 +51,23 @@ ar p $CWD/${PRGNAM}.deb data.tar.gz | gunzip | tar xv
mv $PKG/opt/viber/* $PKG/usr/share/viber
rm -r $PKG/opt
# Fix desktop launcher
-sed -i 's/\/opt\/viber\/Viber/\/usr\/bin\/viber/' $PKG/usr/share/applications/viber.desktop
+sed -i 's/\/opt\/viber\/Viber/\/usr\/bin\/ViberPC/' $PKG/usr/share/applications/viber.desktop
#
# Make a shell launcher
#
# In my opinion, it's a bug... that is, Viber must be called from installation path
# or with complete path to installation path, because it looks for other files.
-# Any symbolic link or hard copy of main binary to /usr/bin would yeld to a
+# Any symbolic link or hard copy of main binary to /usr/bin would yield a
# non-working launcher.
#
+# ViberPC is the name of the window (it is better to call it as such for a better
+# integration with docks, like cairo-dock)
+# Anyway for compatibility with previous version a link to /usr/bin/viber is created.
+#
mkdir -p $PKG/usr/bin
-printf "#!/bin/sh\n/usr/share/viber/Viber\n" > $PKG/usr/bin/viber
+printf "#!/bin/sh\n/usr/share/viber/Viber\n" > $PKG/usr/bin/ViberPC
+ln -s ViberPC $PKG/usr/bin/viber
# Adjust ownerships and permissions
chown -R root:root .
@@ -71,7 +76,7 @@ find -L . \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-chmod +x $PKG/usr/bin/viber
+chmod +x $PKG/usr/bin/ViberPC
cd
mkdir -p $PKG/usr/doc/$PRGNAM-$REAL_VER