summaryrefslogtreecommitdiff
path: root/games/atari800_roms/atari800_roms.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-04-25 18:13:51 +0700
committerErik Hanson <erik@slackbuilds.org>2014-04-27 12:18:16 -0500
commit588c12beb852afaba4db9f8363d580f01d726ef7 (patch)
tree38110e3b0322f6629530f7b9241248109df8b6b8 /games/atari800_roms/atari800_roms.SlackBuild
parente889bca07a70171d1e73b8a7037b5e2b8c96f537 (diff)
downloadslackbuilds-588c12beb852afaba4db9f8363d580f01d726ef7.tar.gz
games/atari800_roms: Added (system ROMs for Atari 8-bit computers).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/atari800_roms/atari800_roms.SlackBuild')
-rw-r--r--games/atari800_roms/atari800_roms.SlackBuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/games/atari800_roms/atari800_roms.SlackBuild b/games/atari800_roms/atari800_roms.SlackBuild
new file mode 100644
index 0000000000..0fbb6129fd
--- /dev/null
+++ b/games/atari800_roms/atari800_roms.SlackBuild
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+# Slackware build script for Atari OS ROMs
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# VERSION is just this script's modification date.
+# No need for ARCH detection or LIBDIRSUFFIX stuff.
+# Too bad I can't put m6502 for $ARCH...
+
+PRGNAM=atari800_roms
+VERSION=${VERSION:-20140424}
+
+ARCH=noarch
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+ZIPFILE=xf25.zip
+SHAREDIR=/usr/share/atari800
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT $PKG/$SHAREDIR/$PRGNAM $PKG/$SHAREDIR/disks
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+unzip -LL $CWD/$ZIPFILE
+
+# No find/chown/chmod, install everything with cat or with explicit perms.
+# The .exe and .doc files inside the zip file are useless.
+install -m0644 -oroot -groot *.rom $PKG/$SHAREDIR/$PRGNAM
+install -m0644 -oroot -groot *.atr *.xfd $PKG/$SHAREDIR/disks
+
+# These symlinks are here in case I ever package up Thor's OS++. It's an
+# open source replacement for the Atari ROMs, and the symlinks would allow
+# picking which ROM to use, like Slackware's /usr/bin/vi does for vim
+# and elvis.
+for rom in ataribas atariosb atarixl; do
+ ln -s $PRGNAM/$rom.rom $PKG/$SHAREDIR/$rom.rom
+done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}