summaryrefslogtreecommitdiff
path: root/development/cargo-vendor/cargo-vendor.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2018-02-18 14:32:48 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-03 08:42:10 +0700
commit4e881f2a549b4567757abcc332cc5a4aaaa5a88a (patch)
tree2570cc8ee42309c698594f9d18b0d7329c021641 /development/cargo-vendor/cargo-vendor.SlackBuild
parenta41de026a6ecf08c01c264dd894d3b43c4a820b5 (diff)
downloadslackbuilds-4e881f2a549b4567757abcc332cc5a4aaaa5a88a.tar.gz
development/cargo-vendor: Fix building on -current.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/cargo-vendor/cargo-vendor.SlackBuild')
-rw-r--r--development/cargo-vendor/cargo-vendor.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/development/cargo-vendor/cargo-vendor.SlackBuild b/development/cargo-vendor/cargo-vendor.SlackBuild
index 269778f02e..c708b4a0c9 100644
--- a/development/cargo-vendor/cargo-vendor.SlackBuild
+++ b/development/cargo-vendor/cargo-vendor.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for cargo-vendor
-# Copyright 2017 Andrew Clemons, Wellington New Zealand
+# Copyright 2017-2018 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -33,6 +33,12 @@ if [ -z "$ARCH" ]; then
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
+
+ if [ "$ARCH" = "i586" ]; then
+ if rustc -Vv | grep host | grep i686 > /dev/null ; then
+ ARCH=i686
+ fi
+ fi
fi
CWD=$(pwd)