diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-19 23:43:13 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:42:57 -0500 |
commit | 2115f140affa3f964d017af16cd2307ea0304548 (patch) | |
tree | 8bdb94098eb0e917f68568f9564e6f97662a2b4b /audio/specimen/specimen.SlackBuild | |
parent | b58ab7cf3c70713145239710feda282a74f5b7ca (diff) |
audio/specimen: Miscellaneous cleanups.
Diffstat (limited to 'audio/specimen/specimen.SlackBuild')
-rw-r--r-- | audio/specimen/specimen.SlackBuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/audio/specimen/specimen.SlackBuild b/audio/specimen/specimen.SlackBuild index 3d631a89248c..cbb33b10ada3 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 |