diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-07-11 02:21:24 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-07-11 02:21:24 -0500 |
commit | cd49f5b46ffc14864c33cb81e3746f4470756cff (patch) | |
tree | 8356f0c46cb9cead640c674bff4c32d6295e5be7 /system/sdltrs/sdltrs.SlackBuild | |
parent | b3a02e793bd9507f902701f6b26e10ac60170abe (diff) | |
download | slackbuilds-cd49f5b46ffc14864c33cb81e3746f4470756cff.tar.gz |
system/sdltrs: Miscellaneous cleanups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/sdltrs/sdltrs.SlackBuild')
-rw-r--r-- | system/sdltrs/sdltrs.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/system/sdltrs/sdltrs.SlackBuild b/system/sdltrs/sdltrs.SlackBuild index 410c88f622..3b43f48d6f 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 {} \; |