aboutsummaryrefslogtreecommitdiff
path: root/system/sdltrs/sdltrs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/sdltrs/sdltrs.SlackBuild')
-rw-r--r--system/sdltrs/sdltrs.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/system/sdltrs/sdltrs.SlackBuild b/system/sdltrs/sdltrs.SlackBuild
index 410c88f62238e..3b43f48d6fe70 100644
--- a/system/sdltrs/sdltrs.SlackBuild
+++ b/system/sdltrs/sdltrs.SlackBuild
@@ -4,14 +4,21 @@
# the Radio Shack TRS-80 Model I/III/4/4p emulator
# Written by Niels Horn - niels.horn@gmail.com
-# revision date 2010/03/12
+# revision date 2010/07/10
PRGNAM=sdltrs
VERSION=${VERSION:-1.1.0}
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
SRCVERSION=$(echo $VERSION | tr . _)
CWD=$(pwd)
@@ -35,6 +42,10 @@ elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4t"
LIBDIRSUFFIX=""
ARCHQUADLET="-gnueabi"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET=""
fi
set -e
@@ -64,7 +75,7 @@ cat $CWD/sdltrs.png > $PKG/usr/share/pixmaps/sdltrs.png
mkdir -p $PKG/usr/share/sdltrs
cp -a diskimages/* $PKG/usr/share/sdltrs
-mkdir -p $PKG/usr/doc/${PRGNAM}-$VERSION/html
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
cp -a BUILDING README $PKG/usr/doc/$PRGNAM-$VERSION
cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION/html/
find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;