diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 00:43:31 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 23:21:43 -0500 |
commit | ccbd0f3fa6cb9291bf9db2d82984051913227622 (patch) | |
tree | aea0ecf9c9e91901b658f4e02a1944d7cff45db9 /desktop/slock/slock.SlackBuild | |
parent | 4d896df4cb05a24a1858f8f7a27c8db292be4609 (diff) | |
download | slackbuilds-ccbd0f3fa6cb9291bf9db2d82984051913227622.tar.gz |
desktop/slock: Miscellaneous cleanups
Diffstat (limited to 'desktop/slock/slock.SlackBuild')
-rw-r--r-- | desktop/slock/slock.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/slock/slock.SlackBuild b/desktop/slock/slock.SlackBuild index 92d0e687d3..c15cc90a62 100644 --- a/desktop/slock/slock.SlackBuild +++ b/desktop/slock/slock.SlackBuild @@ -7,10 +7,19 @@ PRGNAM=slock VERSION=${VERSION:-0.9} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -25,6 +34,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |