summaryrefslogtreecommitdiff
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, 14 insertions, 5 deletions
diff --git a/system/sdltrs/sdltrs.SlackBuild b/system/sdltrs/sdltrs.SlackBuild
index 4ad36063ae..410c88f622 100644
--- a/system/sdltrs/sdltrs.SlackBuild
+++ b/system/sdltrs/sdltrs.SlackBuild
@@ -4,14 +4,16 @@
# the Radio Shack TRS-80 Model I/III/4/4p emulator
# Written by Niels Horn - niels.horn@gmail.com
-# revision date 2009/09/26
+# revision date 2010/03/12
PRGNAM=sdltrs
-VERSION=1_0_0
+VERSION=${VERSION:-1.1.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVERSION=$(echo $VERSION | tr . _)
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -20,21 +22,28 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+ ARCHQUADLET=""
+elif [ "$ARCH" = "arm" ]; then
+ SLKCFLAGS="-O2 -march=armv4t"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET="-gnueabi"
fi
set -e
-rm -rf $TMP/${PRGNAM}_$VERSION $PKG
+rm -rf $TMP/${PRGNAM}_$SRCVERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
-cd ${PRGNAM}_$VERSION
+tar xvf $CWD/${PRGNAM}_$SRCVERSION.tar.gz
+cd ${PRGNAM}_$SRCVERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .