diff options
author | Mario Preksavec <mario@slackware.hr> | 2016-02-25 23:21:44 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-27 13:22:32 +0700 |
commit | df27dd71d0c6f8e53d278b7a2bc8efd041c6828d (patch) | |
tree | b1c7ddf8a20a16e1c81a774281d7494e29616dd0 | |
parent | 081378a99dc49d1448aaa996b135597852533d63 (diff) | |
download | slackbuilds-df27dd71d0c6f8e53d278b7a2bc8efd041c6828d.tar.gz |
network/teamviewer: script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/teamviewer/teamviewer.SlackBuild | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild index 2aedab9446..821a1d3eaa 100644 --- a/network/teamviewer/teamviewer.SlackBuild +++ b/network/teamviewer/teamviewer.SlackBuild @@ -23,6 +23,8 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by Mario Preksavec <mario@slackware.hr> + PRGNAM=teamviewer VERSION=${VERSION:-11.0.53191} BUILD=${BUILD:-2} @@ -41,13 +43,23 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - DEBARCH="i386" - LIBDIRSUFFIX="" -else - echo "Package for $(uname -m) architecture is not available." - exit 1 -fi +# Sanity check, we make sure resulting package will work on users system. +case "$ARCH" in + 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 + ;; +esac + +DEBARCH="i386" +LIBDIRSUFFIX="" set -eu @@ -99,13 +111,6 @@ 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 -# Let's flip-flop the actual locations vs. symlinks of a couple of things: -# First remove the dangling symlink made by Debian packages: -rm -rf $PKG/var/log/teamviewer* $PKG/etc/teamviewer -mkdir -p $PKG/var/log/teamviewer11 $PKG/etc/teamviewer -rm -rf $PKG/opt/teamviewer/logfiles/ $PKG/opt/teamviewer/config/ -ln -s /etc/teamviewer $PKG/opt/teamviewer/config - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |