From bae9fe5a0006ff5c6682c205d799070283864691 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Thu, 28 Dec 2017 00:38:44 -0600 Subject: network/uget-chrome-wrapper: this should not be 'noarch' Reported by echelon on IRC Signed-off-by: Robby Workman --- .../uget-chrome-wrapper.SlackBuild | 26 ++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'network') diff --git a/network/uget-chrome-wrapper/uget-chrome-wrapper.SlackBuild b/network/uget-chrome-wrapper/uget-chrome-wrapper.SlackBuild index 99cfaf422c4a9..6ac934d1ff00a 100644 --- a/network/uget-chrome-wrapper/uget-chrome-wrapper.SlackBuild +++ b/network/uget-chrome-wrapper/uget-chrome-wrapper.SlackBuild @@ -24,16 +24,38 @@ PRGNAM=uget-chrome-wrapper VERSION=${VERSION:-2.0.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -ARCH=noarch +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG -- cgit v1.2.3