diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2011-05-01 10:17:43 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-05-03 09:08:22 -0500 |
commit | 09f96a1f04dafc1cf55acf11dbfcacaaf04be7fd (patch) | |
tree | 57d5f523e5d94fdc1131365a9912caaacc1ebc3b /audio/mppenc/mppenc.SlackBuild | |
parent | 603430084798efd3a4b4b917e663dbcad18afea4 (diff) |
audio/mppenc: ARCH fixes and cleanup.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/mppenc/mppenc.SlackBuild')
-rw-r--r-- | audio/mppenc/mppenc.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/audio/mppenc/mppenc.SlackBuild b/audio/mppenc/mppenc.SlackBuild index af850d92cf41..5a1f84885082 100644 --- a/audio/mppenc/mppenc.SlackBuild +++ b/audio/mppenc/mppenc.SlackBuild @@ -6,10 +6,17 @@ PRGNAM=mppenc VERSION=${VERSION:-1.16} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -27,7 +34,7 @@ elif [ "$ARCH" = "x86_64" ]; then SLKLDFLAGS="-L/usr/lib64" fi -set -e # Exit on most errors +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT |