diff options
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 5efa1b5624..cbd3853f0a 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 |