From 891669841bd61e5949ab0b62f88bf1d8e7841de3 Mon Sep 17 00:00:00 2001 From: Dominik Drobek Date: Mon, 9 Jul 2018 22:34:08 +0100 Subject: network/SoulseekQt: Use /opt. Signed-off-by: David Spencer --- network/SoulseekQt/SoulseekQt.SlackBuild | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'network/SoulseekQt/SoulseekQt.SlackBuild') 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 +# Copyright 2016-2018 Dominik Drobek # 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 -- cgit v1.2.3