mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
games/chexquest3: Added (breakfast cereal themed FPS game).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
d910b2cede
commit
f66dd7f634
8 changed files with 157 additions and 0 deletions
13
games/chexquest3/README
Normal file
13
games/chexquest3/README
Normal file
|
@ -0,0 +1,13 @@
|
|||
chexquest3 (breakfast cereal themed FPS game)
|
||||
|
||||
Chex Quest is a game based on Doom, available in boxes of Chex cereal
|
||||
in 1996.
|
||||
|
||||
Chex Quest 3 is a sequel to Chex Quest, created by the original
|
||||
designer. It includes the complete Chex Quest 1 and 2 (as episodes 1
|
||||
and 2).
|
||||
|
||||
To play the game, you will need a compatible Doom engine installed.
|
||||
Currently, this means gzdoom, zdoom, or skulltag. You won't need any
|
||||
.wad files from any of the Doom games, since Chex Quest 3 is a
|
||||
total conversion.
|
78
games/chexquest3/chexquest3.SlackBuild
Normal file
78
games/chexquest3/chexquest3.SlackBuild
Normal file
|
@ -0,0 +1,78 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for chexquest3
|
||||
|
||||
# Written by B. Watson (yalhcru@gmail.com)
|
||||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
PRGNAM=chexquest3
|
||||
VERSION=${VERSION:-20100924}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
SRCNAM=ChexQuest3
|
||||
WAD=chex3.wad
|
||||
WADDIR=$PKG/usr/share/games/doom
|
||||
DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
BINDIR=$PKG/usr/games
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
mkdir $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
unzip -a $CWD/$SRCNAM.zip \*.wad \*.txt
|
||||
|
||||
# no chown/chmod stuff here, all files installed with explicit perms.
|
||||
mkdir -p $WADDIR $DOCDIR $BINDIR
|
||||
install -m0644 $WAD $WADDIR/$WAD
|
||||
install -m0644 *.txt $DOCDIR
|
||||
install -m0755 $CWD/$PRGNAM.sh $BINDIR/$PRGNAM
|
||||
|
||||
mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/applications
|
||||
|
||||
# icon extracted from chex3.exe with wrestool, converted with icotool
|
||||
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
|
||||
|
||||
# .desktop written by SlackBuild author
|
||||
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
|
||||
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}
|
7
games/chexquest3/chexquest3.desktop
Normal file
7
games/chexquest3/chexquest3.desktop
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Chex Quest 3
|
||||
Icon=chexquest3
|
||||
Exec=/usr/games/chexquest3
|
||||
Terminal=false
|
||||
Categories=Game;ActionGame;
|
10
games/chexquest3/chexquest3.info
Normal file
10
games/chexquest3/chexquest3.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="chexquest3"
|
||||
VERSION="20100924"
|
||||
HOMEPAGE="http://www.chucktropolis.com/gamers.htm"
|
||||
DOWNLOAD="http://www.chucktropolis.com/downloads/ChexQuest3.zip"
|
||||
MD5SUM="e6e9bec61c1678ee0c883731dd43b60d"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
BIN
games/chexquest3/chexquest3.png
Normal file
BIN
games/chexquest3/chexquest3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
27
games/chexquest3/chexquest3.sh
Normal file
27
games/chexquest3/chexquest3.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Wrapper script for chexquest3, part of the SlackBuilds.org project.
|
||||
# Finds a usable Doom engine and uses it to run the game.
|
||||
|
||||
# The IWAD. Actually, for some reason, its header defines it as a PWAD.
|
||||
# But it really is an IWAD. Go figure.
|
||||
WAD=/usr/share/games/doom/chex3.wad
|
||||
|
||||
# The list is restricted to engines that (a) are on SBo, and (b) can
|
||||
# actually play Chex Quest 3.
|
||||
|
||||
# These were tested, and don't work:
|
||||
# chocolate-doom crispy-doom odamex prboom prboom-plus doomretro doomsday
|
||||
|
||||
# These were tested, and do work... though skulltag has issues.
|
||||
ENGINES="gzdoom zdoom skulltag"
|
||||
|
||||
# And we're off to the races...
|
||||
for eng in $ENGINES; do
|
||||
if /bin/which $eng &>/dev/null; then
|
||||
exec $eng -iwad $WAD "$@"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Can't find any of $ENGINES, can't run game." 1>&2
|
||||
exit 1
|
3
games/chexquest3/doinst.sh
Normal file
3
games/chexquest3/doinst.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
19
games/chexquest3/slack-desc
Normal file
19
games/chexquest3/slack-desc
Normal file
|
@ -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------------------------------------------------------|
|
||||
chexquest3: chexquest3 (breakfast cereal themed FPS game)
|
||||
chexquest3:
|
||||
chexquest3: Chex Quest is a game based on Doom, available in boxes of Chex cereal
|
||||
chexquest3: in 1996.
|
||||
chexquest3:
|
||||
chexquest3: Chex Quest 3 is a sequel to Chex Quest, created by the original
|
||||
chexquest3: designer. It includes the complete Chex Quest 1 and 2 (as episodes 1
|
||||
chexquest3: and 2).
|
||||
chexquest3:
|
||||
chexquest3:
|
||||
chexquest3:
|
Loading…
Reference in a new issue