diff options
Diffstat (limited to 'audio/mppenc')
-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 af850d92cf..5a1f848850 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 |