summaryrefslogtreecommitdiff
path: root/games/hatari_tos_roms/hatari_tos_roms.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-08-26 11:50:54 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-30 14:22:21 +0700
commit4ee8ba718a99985e27acfe8bc3610058af3fb3b8 (patch)
tree0d03e122d67e27a416cbbec8dfd2c1bf0df7cc47 /games/hatari_tos_roms/hatari_tos_roms.SlackBuild
parentb7d983c6517b38e407003ddfd50c39f79177c8b3 (diff)
downloadslackbuilds-4ee8ba718a99985e27acfe8bc3610058af3fb3b8.tar.gz
games/hatari_tos_roms: Updated for version 20140825.
Include TOS 1.04 images, simplify script Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/hatari_tos_roms/hatari_tos_roms.SlackBuild')
-rw-r--r--games/hatari_tos_roms/hatari_tos_roms.SlackBuild42
1 files changed, 22 insertions, 20 deletions
diff --git a/games/hatari_tos_roms/hatari_tos_roms.SlackBuild b/games/hatari_tos_roms/hatari_tos_roms.SlackBuild
index 0f6c6c9b8d..ff14c1eef1 100644
--- a/games/hatari_tos_roms/hatari_tos_roms.SlackBuild
+++ b/games/hatari_tos_roms/hatari_tos_roms.SlackBuild
@@ -6,17 +6,20 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# The version number is just the date when the script was written.
-# The actual TOS ROM versions are 1.02-uk, 2.06-uk, and optionally
-# 1.02-us and 2.06-us.
+# The actual TOS ROM versions are 1.02, 1.04, 2.06
-# the US ROMs are optional. They come from
-# http://steem.atari.st/tos_us.zip
-# (md5sum bf250988783a0d468711a1057215fd73)
-# If they're present, they get included in the package, and the
-# slack-desc gets modified to say so.
+# 20140825 bkw:
+# - include the 1.04 images, since hatari needs them to allow direct
+# launching of .prg files from the command line.
+# - simplify script, the US images used to be optional, now they're
+# required, and we don't need code to modify the slack-desc either.
+
+# I thought about gzipping these, since hatari supports gzipped roms, but
+# they're not taking up that much space (1088K uncompressed, 670K gzipped),
+# plus other emulators than hatari can use these, and might not support .gz
PRGNAM=hatari_tos_roms
-VERSION=${VERSION-20090122}
+VERSION=${VERSION-20140825}
ARCH=noarch
BUILD=${BUILD-1}
TAG=${TAG-_SBo}
@@ -32,25 +35,24 @@ rm -rf $PKG
mkdir -p $PKG/usr/share/hatari $PKG/install
cd $PKG/usr/share/hatari
+
unzip $CWD/tos_uk.zip
+unzip $CWD/tos_us.zip
+unzip $CWD/tos104uk.zip
+unzip $CWD/tos104us.zip
mv Tos206.img tos-2.06-uk.img
mv Tos102.img tos-1.02-uk.img
+mv Tos206us.img tos-2.06-us.img
+mv Tos102us.img tos-1.02-us.img
+mv tos104uk.img tos-1.04-uk.img
+mv tos104us.img tos-1.04-us.img
-US="$PRGNAM: This package includes only the UK ROM images."
-if [ -f $CWD/tos_us.zip ]; then
- unzip $CWD/tos_us.zip
- mv Tos206us.img tos-2.06-us.img
- mv Tos102us.img tos-1.02-us.img
- US="$PRGNAM: This package includes both the US and UK ROM images."
-fi
-
-# hatari uses this image by default.
-# 1.02 is better for games...
-ln -s tos-1.02-uk.img tos.img
+chown root:root *
+chmod 644 *
cat $CWD/slack-desc >$PKG/install/slack-desc
-echo "$US" >> $PKG/install/slack-desc
+cat $CWD/doinst.sh >$PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}