summaryrefslogtreecommitdiff
path: root/games/freedoom/freedoom.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2012-01-15 22:58:12 -0600
committerRobby Workman <rworkman@slackbuilds.org>2012-01-15 22:58:12 -0600
commit950c61091dd97482b917625fcb92eb5a8acc72b7 (patch)
tree0f5f379824106b88a7e9fd2d17b920928fd35a19 /games/freedoom/freedoom.SlackBuild
parent29c2578e2cb4e548d2b5e9bc1ae750cb0ec7dca2 (diff)
downloadslackbuilds-950c61091dd97482b917625fcb92eb5a8acc72b7.tar.gz
games/freedoom: Added (free replacement for Doom/Doom2 game data)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/freedoom/freedoom.SlackBuild')
-rw-r--r--games/freedoom/freedoom.SlackBuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/games/freedoom/freedoom.SlackBuild b/games/freedoom/freedoom.SlackBuild
new file mode 100644
index 0000000000..75d026fc4c
--- /dev/null
+++ b/games/freedoom/freedoom.SlackBuild
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# Slackware build script for freedoom
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=freedoom
+VERSION=${VERSION:-0.7}
+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
+
+for zipfile in $PRGNAM-iwad $PRGNAM-ultimate freedm; do
+ cd $TMP/$PRGNAM-$VERSION
+ unzip $CWD/$zipfile-$VERSION.zip
+ cd $TMP/$PRGNAM-$VERSION/$zipfile-$VERSION
+ chown -R root:root .
+ chmod 644 *
+ mkdir -p $PKG/usr/share/games/doom $PKG/usr/doc/$PRGNAM-$VERSION/$zipfile
+ cp ChangeLog COPYING README CREDITS NEWS *.html \
+ $PKG/usr/doc/$PRGNAM-$VERSION/$zipfile
+ cp *.wad $PKG/usr/share/games/doom
+done
+
+# Rename to avoid conflicts with id software's doom.wad and doom2.wad.
+# zdoom will correctly find the files with these names, according to
+# http://remilia.zdoom.org/wiki/IWAD
+
+cd $PKG/usr/share/games/doom
+mv doom.wad freedoomu.wad
+mv doom2.wad freedoom.wad
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
+
+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}