aboutsummaryrefslogtreecommitdiff
path: root/network/uget-chrome-wrapper
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2017-12-28 00:38:44 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-06 06:55:58 +0700
commitbae9fe5a0006ff5c6682c205d799070283864691 (patch)
tree597b6d75db7b864a36946bde2570c05c0d9b3797 /network/uget-chrome-wrapper
parente233cb703f8965a271c16f0bf0db01e705d57476 (diff)
network/uget-chrome-wrapper: this should not be 'noarch'
Reported by echelon on IRC Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/uget-chrome-wrapper')
-rw-r--r--network/uget-chrome-wrapper/uget-chrome-wrapper.SlackBuild26
1 files changed, 24 insertions, 2 deletions
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