diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-03-15 19:45:25 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 13:27:11 +0200 |
commit | dba262d6c97cbd53e483b5ca3ecef401be2de907 (patch) | |
tree | a7b202fd53e95522645ecb78676ca20c13fae89b /system/sdltrs/sdltrs.SlackBuild | |
parent | cf830e3d2af49fcf7a3c8d1e10b85e86187e7d91 (diff) |
system/sdltrs: Updated for version 1.1.0.
Diffstat (limited to 'system/sdltrs/sdltrs.SlackBuild')
-rw-r--r-- | system/sdltrs/sdltrs.SlackBuild | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/system/sdltrs/sdltrs.SlackBuild b/system/sdltrs/sdltrs.SlackBuild index 4ad36063aea20..410c88f62238e 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 . |