From dba262d6c97cbd53e483b5ca3ecef401be2de907 Mon Sep 17 00:00:00 2001 From: Niels Horn Date: Mon, 15 Mar 2010 19:45:25 -0500 Subject: system/sdltrs: Updated for version 1.1.0. --- system/sdltrs/sdltrs.SlackBuild | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'system/sdltrs/sdltrs.SlackBuild') diff --git a/system/sdltrs/sdltrs.SlackBuild b/system/sdltrs/sdltrs.SlackBuild index 4ad36063aea2..410c88f62238 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 . -- cgit v1.2.3