summaryrefslogtreecommitdiff
path: root/audio/specimen/specimen.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/specimen/specimen.SlackBuild')
-rw-r--r--audio/specimen/specimen.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/audio/specimen/specimen.SlackBuild b/audio/specimen/specimen.SlackBuild
index 3d631a8924..cbb33b10ad 100644
--- a/audio/specimen/specimen.SlackBuild
+++ b/audio/specimen/specimen.SlackBuild
@@ -20,10 +20,19 @@
PRGNAM=specimen
VERSION=${VERSION:-0.5.1}
-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
@@ -63,8 +72,8 @@ LDFLAGS="-L/lib${LIBDIRSUFFIX} -L/usr/lib${LIBDIRSUFFIX}" \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX}
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION