summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 23:43:13 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:42:57 -0500
commit2115f140affa3f964d017af16cd2307ea0304548 (patch)
tree8bdb94098eb0e917f68568f9564e6f97662a2b4b
parentb58ab7cf3c70713145239710feda282a74f5b7ca (diff)
downloadslackbuilds-2115f140affa3f964d017af16cd2307ea0304548.tar.gz
audio/specimen: Miscellaneous cleanups.
-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