diff options
author | Dominik Drobek <dominik.drobek (at) o2.pl> | 2018-07-09 22:34:08 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2018-07-09 22:34:45 +0100 |
commit | 891669841bd61e5949ab0b62f88bf1d8e7841de3 (patch) | |
tree | 20db210b3953861e5d8635d11236fb776fac4b4d /network/SoulseekQt/SoulseekQt.SlackBuild | |
parent | 7d52c4b76366029222bd8c53713a0a2dc389514b (diff) |
network/SoulseekQt: Use /opt.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/SoulseekQt/SoulseekQt.SlackBuild')
-rw-r--r-- | network/SoulseekQt/SoulseekQt.SlackBuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/network/SoulseekQt/SoulseekQt.SlackBuild b/network/SoulseekQt/SoulseekQt.SlackBuild index 5efa1b562473b..cbd3853f0a3d0 100644 --- a/network/SoulseekQt/SoulseekQt.SlackBuild +++ b/network/SoulseekQt/SoulseekQt.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for SoulseekQt -# Copyright 2016 Dominik Drobek <dominik.drobek (at) o2.pl> +# Copyright 2016-2018 Dominik Drobek <dominik.drobek (at) o2.pl> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=SoulseekQt VERSION=${VERSION:-20160117} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} FVER="2016-1-17" @@ -44,11 +44,11 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "x86_64" ]; then TGZARCH="64bit" -elif [ "$ARCH" = "arm" ]; then +elif [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then + TGZARCH="32bit" +else printf "\n$ARCH is unsupported for $PRGNAM, exiting.\n\n" exit 1 -else - TGZARCH="32bit" fi set -e @@ -62,10 +62,12 @@ tar xvf $CWD/$PRGNAM-$FVER-$TGZARCH.tgz -C $TMP/$PRGNAM-$VERSION cd $PRGNAM-$VERSION chown -R root:root . -mkdir -p $PKG/usr/{bin,share/{pixmaps,applications}} -install -m 755 $PRGNAM-$FVER-$TGZARCH $PKG/usr/bin/$PRGNAM +mkdir -p $PKG/opt/$PRGNAM +mkdir -p $PKG/usr/{bin,share/{applications,pixmaps}} +install -m 755 $PRGNAM-$FVER-$TGZARCH $PKG/opt/$PRGNAM/$PRGNAM install -m 644 $CWD/SoulseekQt.png $PKG/usr/share/pixmaps install -m 644 $CWD/SoulseekQt.desktop $PKG/usr/share/applications +ln -sf /opt/$PRGNAM/$PRGNAM $PKG/usr/bin/$PRGNAM find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |