summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/specimen/README3
-rw-r--r--audio/specimen/specimen.SlackBuild15
2 files changed, 13 insertions, 5 deletions
diff --git a/audio/specimen/README b/audio/specimen/README
index 25c361d82c..77fad04b94 100644
--- a/audio/specimen/README
+++ b/audio/specimen/README
@@ -1,4 +1,3 @@
SPECIMEN is an open source, MIDI controllable audio sampler for Linux.
-Requires: libgnomecanvas, jack-audio-connection-kit, libsamplerate,
-libsndfile, and phat. All available at SlackBuilds.org. \ No newline at end of file
+This requires libgnomecanvas, jack-audio-connection-kit, libsndfile, and phat.
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