diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:05:13 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:05:13 -0400 |
commit | 97f7aa506cc8b2f4431f55fd24db3ef98acc435b (patch) | |
tree | e5c354e0350772d8ad236208868d645291f4d87d /graphics/feh | |
parent | b2b8cd7a3818d3a4c886ebefef679de04d35e8bf (diff) |
graphics/feh: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/feh')
-rw-r--r-- | graphics/feh/feh.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/feh/feh.SlackBuild b/graphics/feh/feh.SlackBuild index da5310ec46911..ec17638bf3787 100644 --- a/graphics/feh/feh.SlackBuild +++ b/graphics/feh/feh.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=feh VERSION=1.3.4 -ARCH=${ARCH:-i486} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + 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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -rf $PKG |