From 3f95c60ec912d9ca3f4502ba34359aed28a45f72 Mon Sep 17 00:00:00 2001 From: B. Watson Date: Sat, 7 Jan 2023 15:46:52 -0500 Subject: games/jzintv: Clean up doc dir, add ROMs. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/jzintv/README | 4 ++-- games/jzintv/README_ROMs.txt | 50 ------------------------------------------ games/jzintv/jzintv.SlackBuild | 20 +++++++++++------ games/jzintv/jzintv.info | 8 +++++-- 4 files changed, 21 insertions(+), 61 deletions(-) delete mode 100644 games/jzintv/README_ROMs.txt (limited to 'games/jzintv') diff --git a/games/jzintv/README b/games/jzintv/README index 6f73e37c5b..7db13058b2 100644 --- a/games/jzintv/README +++ b/games/jzintv/README @@ -4,5 +4,5 @@ jzintv is an emulator and development environment for the Mattel Intellivision game console. The Intellivision console contains code in the form of ROM. jzintv -requires images of these ROMs in order to run. See README_ROMs.txt for -details on the ROM images and how to include them in the package. +requires images of these ROMs in order to run. The package includes +the ROM images, so there's no need to search the 'net for them. diff --git a/games/jzintv/README_ROMs.txt b/games/jzintv/README_ROMs.txt deleted file mode 100644 index 93edd8db9b..0000000000 --- a/games/jzintv/README_ROMs.txt +++ /dev/null @@ -1,50 +0,0 @@ -TL;DR version: if you want the ROMs to be included in the package, -find the file "intv.zip" (and optionally "intv_ecs.zip") somewhere on -the internet and place it in the SlackBuild directory, before running -the script. - -Long version: - -By default, this package does not contain the ROM images due to -copyright concerns. You can use the ROMs from the commercially -available "Intellivision Lives!" CD-ROM, dump the ROMs from an -Intellivision console, or attempt to find the ROMs on the 'net -somewhere. These are the same ROMs used by the MAME/MESS emulator. - -For the Intellivision console, there are 2 ROM images, usually -found in a file called "intv.zip". Contents: - -exec.bin, 8192 bytes, md5sum 62e761035cb657903761800f4437b8af -grom.bin, 2048 bytes, md5sum 0cd5946c6473e42e8e4c2137785e427f - -If you also want to emulate the Computer Module (aka the Entertainment -Computer System), you'll also need its ROM, usually found in a file -called "intv_ecs.zip". Contents: - -ecs.bin, 24576 bytes, md5sum 2e72a9a2b897d330a35c8b07a6146c52 - -*or*, split into 3 files: - -ecs_rom.20, 8192 bytes, md5sum 52f0bbbaff9ca21e619eb0ad5d85f9fb -ecs_rom.70, 8192 bytes, md5sum 83efe70ebb42e3ded46ac76d851838a0 -ecs_rom.e0, 8192 bytes, md5sum ee2d7856f667ed66430be88871d86c39 - -Your md5sums may not match, since Mattel released several versions of -the ROMs. The above are known to work, but other versions might also -work. - -If you want to include the ROM images in the package, place either -the zip file(s) (intv.zip, and intv_ecs.zip if you need it) or the -unzipped contents in the SlackBuild directory... or if you have them -installed already in a previous jzintv package, or if you have them in -/usr/share/games/mame/roms, the script will find them there also. You -can also export JZINTV_ROM_PATH in the environment, to find the ROMs -there. - -If you'd rather install the ROMs manually: build the package without -them, install it, then copy them to /usr/share/games/jzintv/rom. If -your ECS ROM is split into 3 files, join them with a command like: - -cat ecs_rom.20 ecs_rom.70 ecs_rom.e0 > ecs.bin - -jzintv looks for the .bin files, not the .zip file(s). diff --git a/games/jzintv/jzintv.SlackBuild b/games/jzintv/jzintv.SlackBuild index 67e7b28f8b..b830b3b65c 100644 --- a/games/jzintv/jzintv.SlackBuild +++ b/games/jzintv/jzintv.SlackBuild @@ -6,6 +6,10 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230107 bkw: BUILD=3 +# - fix permissions in doc dir. +# - go ahead and include the ROMs in the package. + # 20211023 bkw: BUILD=2 # - fix -current build. # - binaries in /usr/games. @@ -17,7 +21,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jzintv VERSION=${VERSION:-r1025} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -61,8 +65,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION chown -R root:root . -find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ - \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +find . -type f -a -exec chmod 644 {} \+ -o \ + -type d -a -exec chmod 755 {} \+ # 20211024 bkw: these patches are gzipped because they contain \r\n # line endings, and we can't trust git to preserve them. @@ -110,10 +114,12 @@ else ROMS="This package includes ROM images: $ROMS" fi -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -r *.txt doc examples rom misc $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README_SBo.txt +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +echo "This directory is empty on purpose" > examples/spacepat/genasm/.dontdelete +cp -r *.txt doc examples rom misc $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild +cat $CWD/README > $PKGDOC/README_SBo.txt mkdir -p $PKG/install sed "14s/:/: $ROMS/" $CWD/slack-desc > $PKG/install/slack-desc diff --git a/games/jzintv/jzintv.info b/games/jzintv/jzintv.info index d9b621c9d8..e92e28d256 100644 --- a/games/jzintv/jzintv.info +++ b/games/jzintv/jzintv.info @@ -1,8 +1,12 @@ PRGNAM="jzintv" VERSION="r1025" HOMEPAGE="http://www.intellivision.us/intvgames/jzintv/jzintv.php" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/jzintv-r1025.tar.xz" -MD5SUM="6c1a9703c1c3a797aca94a0f98907bcb" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/jzintv-r1025.tar.xz \ + https://slackware.uk/~urchlay/src/intv_ecs.zip \ + http://cominf0.narod.ru/mess123/intv.zip" +MD5SUM="6c1a9703c1c3a797aca94a0f98907bcb \ + 9391d44477a531668bfd233f0809eebd \ + 84ab0811c5d65b0be1cf16c755ae2dc6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3