summaryrefslogtreecommitdiff
path: root/games/defcon
diff options
context:
space:
mode:
Diffstat (limited to 'games/defcon')
-rw-r--r--games/defcon/README12
-rw-r--r--games/defcon/defcon.SlackBuild64
-rw-r--r--games/defcon/defcon.info8
-rw-r--r--games/defcon/defcon.sh5
-rw-r--r--games/defcon/slack-desc19
5 files changed, 108 insertions, 0 deletions
diff --git a/games/defcon/README b/games/defcon/README
new file mode 100644
index 0000000000..be891348eb
--- /dev/null
+++ b/games/defcon/README
@@ -0,0 +1,12 @@
+DEFCON is a multiplayer simulation of global thermonuclear war,
+developed by Introversion. By default the game functions as a demo,
+which can be unlocked by buying a license key from Introversion.
+
+In addition to the Linux archive, that is listed in the defcon.info
+file, you will need the sounds.dat file for the game to build this
+package. This file is available from:
+
+http://www.everybody-dies.com/downloads/sounds.dat
+
+The DEFCON website can be found at:
+http://www.everybody-dies.com/
diff --git a/games/defcon/defcon.SlackBuild b/games/defcon/defcon.SlackBuild
new file mode 100644
index 0000000000..0a3db027a7
--- /dev/null
+++ b/games/defcon/defcon.SlackBuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# Slackware build script for defcon
+
+# Copyright (c) 2007 Daniel de Kok <moc.mikciat@leinad>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Exit on most errors
+set -e
+
+PRGNAM=defcon
+VERSION=1.4beta2b
+ARCHIVEVER=v1.4-beta2b
+ARCH=i686
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xzvf $CWD/$PRGNAM-$ARCHIVEVER.tar.gz
+cd $PRGNAM-$ARCHIVEVER
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+mkdir -p $PKG/usr/lib/$PRGNAM
+cp -a lib/* $PKG/usr/lib/$PRGNAM
+cp $CWD/sounds.dat $PKG/usr/lib/$PRGNAM
+mkdir $PKG/usr/bin
+cp $CWD/defcon.sh $PKG/usr/bin/defcon
+chmod 0755 $PKG/usr/bin/defcon
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/README-SDL.txt doc/linux.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+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.tgz
diff --git a/games/defcon/defcon.info b/games/defcon/defcon.info
new file mode 100644
index 0000000000..09c9a00521
--- /dev/null
+++ b/games/defcon/defcon.info
@@ -0,0 +1,8 @@
+PRGNAM="defcon"
+VERSION="1.4beta2b"
+HOMEPAGE="http://www.everybody-dies.com/"
+DOWNLOAD="http://www.everybody-dies.com/downloads/defcon-v1.4-beta2b.tar.gz"
+MD5SUM="8ce864ff256c287a06dbe50b4f640f25"
+MAINTAINER="Daniel de Kok"
+EMAIL="danieldk@pobox.com"
+APPROVED="elohim"
diff --git a/games/defcon/defcon.sh b/games/defcon/defcon.sh
new file mode 100644
index 0000000000..6d0533da53
--- /dev/null
+++ b/games/defcon/defcon.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DEFCONPATH=/usr/lib/defcon
+export LD_LIBRARY_PATH="$DEFCONPATH:$LD_LIBRARY_PATH"
+$DEFCONPATH/defcon.bin.x86 "$@"
diff --git a/games/defcon/slack-desc b/games/defcon/slack-desc
new file mode 100644
index 0000000000..a2f5386bae
--- /dev/null
+++ b/games/defcon/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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+defcon: defcon (everybody dies)
+defcon:
+defcon: DEFCON is a multiplayer simulation of global thermonuclear war,
+defcon: developed by Introversion. By default the game functions as a demo,
+defcon: which can be unlocked by buying a license key from Introversion.
+defcon:
+defcon: The DEFCON website can be found at:
+defcon: http://www.everybody-dies.com/
+defcon:
+defcon:
+defcon: