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 | |
parent | 7d52c4b76366029222bd8c53713a0a2dc389514b (diff) | |
download | slackbuilds-891669841bd61e5949ab0b62f88bf1d8e7841de3.tar.gz |
network/SoulseekQt: Use /opt.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/SoulseekQt')
-rw-r--r-- | network/SoulseekQt/SoulseekQt.SlackBuild | 16 | ||||
-rw-r--r-- | network/SoulseekQt/SoulseekQt.info | 4 |
2 files changed, 11 insertions, 9 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 diff --git a/network/SoulseekQt/SoulseekQt.info b/network/SoulseekQt/SoulseekQt.info index dc5017fc1a..09de463657 100644 --- a/network/SoulseekQt/SoulseekQt.info +++ b/network/SoulseekQt/SoulseekQt.info @@ -1,10 +1,10 @@ PRGNAM="SoulseekQt" VERSION="20160117" -HOMEPAGE="http://www.slsknet.org/" +HOMEPAGE="https://www.slsknet.org/" DOWNLOAD="https://www.dropbox.com/s/kebk1b5ib1m3xxw/SoulseekQt-2016-1-17-32bit.tgz" MD5SUM="906d99b15ed02d0d66981fffeeea1218" DOWNLOAD_x86_64="https://www.dropbox.com/s/7qh902qv2sxyp6p/SoulseekQt-2016-1-17-64bit.tgz" MD5SUM_x86_64="c843e748a129e4ad9461280aeb2b957a" REQUIRES="" MAINTAINER="Dominik Drobek" -EMAIL="dominik.drobek@o2.pl" +EMAIL="dominik.drobek (at) o2.pl" |