diff options
author | B. Watson <yalhcru@gmail.com> | 2018-09-02 00:52:51 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-09-08 08:37:38 +0700 |
commit | dcd937fd24c909af505f8c8975cc31d245bdedc9 (patch) | |
tree | dbae9c9360edde5b32fd4dcf223cc86fe90358c8 /games/xroar-roms/xroar-roms.SlackBuild | |
parent | f2ba52c97f79132396ef742797a64a25881d3bbb (diff) |
games/xroar-roms: Added (Dragon and CoCo ROM images).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/xroar-roms/xroar-roms.SlackBuild')
-rw-r--r-- | games/xroar-roms/xroar-roms.SlackBuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/games/xroar-roms/xroar-roms.SlackBuild b/games/xroar-roms/xroar-roms.SlackBuild new file mode 100644 index 0000000000000..28216105d4bbf --- /dev/null +++ b/games/xroar-roms/xroar-roms.SlackBuild @@ -0,0 +1,52 @@ +#!/bin/sh + +# Slackware build script for xroar-roms + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# The list of ROMS is the intersection of the set of ROMs xroar loads +# by default, and the example commands in Readme.txt. Adding a ROM is +# as simple as adding it to the .info file, just make sure the download +# links line up with the md5sums. + +PRGNAM=xroar-roms +VERSION=${VERSION:-20180901} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG/usr/share/xroar/roms $OUTPUT +cd $PKG/usr/share/xroar/roms + +# DRY principle: I already listed all the files in the .info file, not +# duplicating the list here. +. $CWD/$PRGNAM.info + +# These ROMs aren't zipped or anything, just stick them where they go. +for romfile in $DOWNLOAD; do + romfile="$( basename $romfile )" + cat "$CWD/$romfile" > "$romfile" +done + +# Get rid of "-vo sdl" from example commands, as it no longer works in +# modern xroar. +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +sed 's/-vo *sdl *//g' Readme.txt > $PKG/usr/doc/$PRGNAM-$VERSION/Readme.txt +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README_SBo.txt +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} |