summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/exa/exa.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/system/exa/exa.SlackBuild b/system/exa/exa.SlackBuild
index 56fdabd4ce..6deb91fb9f 100644
--- a/system/exa/exa.SlackBuild
+++ b/system/exa/exa.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=exa
VERSION=${VERSION:-0.8.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -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)
@@ -177,7 +183,7 @@ sed -i 's,share/man,man,' Makefile
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-cargo build --release --no-default-features --features default
+cargo build --release --no-default-features --features default $CARGOTARGET
find target -name exa -exec install -m 755 {} $PKG/usr/bin/exa \;
make install-man install-bash-completions install-zsh-completions DESTDIR=$PKG PREFIX=/usr BASHDIR=/usr/share/bash-completion/completions