aboutsummaryrefslogtreecommitdiff
path: root/games/jfsw_registered_data
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-07-16 22:39:01 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-07-16 22:39:01 +0700
commit300e142f8da91b9a0b5be3cb71586aadb2e9a16b (patch)
tree34811a1ce8539bf85359048e3b59f383020e9b06 /games/jfsw_registered_data
parentd7c59182c454391824f2a850ea12e7691c73beae (diff)
games/jfsw_registered_data: Added (Game data for Shadow Warrior).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/jfsw_registered_data')
-rw-r--r--games/jfsw_registered_data/README21
-rw-r--r--games/jfsw_registered_data/doinst.sh4
-rw-r--r--games/jfsw_registered_data/jfsw_registered_data.SlackBuild58
-rw-r--r--games/jfsw_registered_data/jfsw_registered_data.info10
-rw-r--r--games/jfsw_registered_data/slack-desc19
5 files changed, 112 insertions, 0 deletions
diff --git a/games/jfsw_registered_data/README b/games/jfsw_registered_data/README
new file mode 100644
index 000000000000..67e0da1b9d43
--- /dev/null
+++ b/games/jfsw_registered_data/README
@@ -0,0 +1,21 @@
+jfsw_registered_data (game data from full version of Shadow Warrior)
+
+This is the full/registered version of Shadow Warrior, for use with the
+jfsw game engine.
+
+Shadow Warrior is a first-person shooter video game developed by 3D
+Realms and published by GT Interactive Software. The shareware version
+was released for the PC on May 13, 1997, while the full version was
+released on August 31, 1997. Shadow Warrior was developed using Ken
+Silverman's Build engine.
+
+The jfsw launcher supports both the demo version (jfsw_demo_data) and the
+full version (jfsw_registered_data). Since the full version includes the
+levels from the demo version (as Episode 1), there's no need to install
+both on the same system, although this is supported.
+
+If you get '403 Forbidden' when downloading the source file, either
+use a browser to visit the homepage and click on 'Download Full', or
+else use a custom User-Agent header. Example:
+
+( source jfsw_registered_data.info ; wget --user-agent Firefox $DOWNLOAD )
diff --git a/games/jfsw_registered_data/doinst.sh b/games/jfsw_registered_data/doinst.sh
new file mode 100644
index 000000000000..9646a77b0119
--- /dev/null
+++ b/games/jfsw_registered_data/doinst.sh
@@ -0,0 +1,4 @@
+# If there's no sw.grp link, take over:
+if [ ! -r usr/share/games/jfsw/sw.grp ]; then
+ ( cd usr/share/games/jfsw/ ; ln -sf sw_registered.grp sw.grp )
+fi
diff --git a/games/jfsw_registered_data/jfsw_registered_data.SlackBuild b/games/jfsw_registered_data/jfsw_registered_data.SlackBuild
new file mode 100644
index 000000000000..756d31d89caf
--- /dev/null
+++ b/games/jfsw_registered_data/jfsw_registered_data.SlackBuild
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+# Slackware build script for jfsw_registered_data
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# This game is offered as a free download on both Steam and GoG.
+# It's also been available from www.oldpcgaming.net since 2014.
+
+PRGNAM=jfsw_registered_data
+VERSION=${VERSION:-1.2}
+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 $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir -p $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+7za x $CWD/shadow.7z '*/*.GRP' '*/*.TXT' '*/*.ICO'
+cd shadow
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+
+mkdir -p $PKG/usr/share/games/jfsw
+install -m0644 SW.GRP $PKG/usr/share/games/jfsw/sw_registered.grp
+
+# This stuff's not very relevant to a source port.
+rm -f INSTALL.TXT ORDERFRM.TXT
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+for i in *.TXT; do
+ sed 's,\r,,' < $i > $PKG/usr/doc/$PRGNAM-$VERSION/$( echo $i | tr A-Z a-z )
+done
+cat SW.ICO > $PKG/usr/doc/$PRGNAM-$VERSION/sw.ico
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $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}
diff --git a/games/jfsw_registered_data/jfsw_registered_data.info b/games/jfsw_registered_data/jfsw_registered_data.info
new file mode 100644
index 000000000000..a5153d153a8e
--- /dev/null
+++ b/games/jfsw_registered_data/jfsw_registered_data.info
@@ -0,0 +1,10 @@
+PRGNAM="jfsw_registered_data"
+VERSION="1.2"
+HOMEPAGE="http://www.oldpcgaming.net/shadow-warrior-review/"
+DOWNLOAD="http://www.oldpcgaming.net/demo/shadow.7z"
+MD5SUM="b1dff182c5760710c2e31e9f4e728eb1"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="jfsw p7zip"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/games/jfsw_registered_data/slack-desc b/games/jfsw_registered_data/slack-desc
new file mode 100644
index 000000000000..5ece55c42fad
--- /dev/null
+++ b/games/jfsw_registered_data/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+jfsw_registered_data: jfsw_registered_data (game data from full version of Shadow Warrior)
+jfsw_registered_data:
+jfsw_registered_data: This is the full/registered version of Shadow Warrior, for use with
+jfsw_registered_data: the jfsw game engine.
+jfsw_registered_data:
+jfsw_registered_data: Shadow Warrior is a first-person shooter video game developed by 3D
+jfsw_registered_data: Realms and published by GT Interactive Software. The shareware version
+jfsw_registered_data: was released for the PC on May 13, 1997, while the full version was
+jfsw_registered_data: released on August 31, 1997. Shadow Warrior was developed using Ken
+jfsw_registered_data: Silverman's Build engine.
+jfsw_registered_data: