aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2012-04-08 10:55:54 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-04-08 10:55:54 -0400
commit26716926eaabddfb6dec634f3ec105ed61092125 (patch)
treea7f8f0f55b202ffd9dd9fbd4080e6fdbb14b34db
parente5836baf78816ef4ae8cebb760d2679201335a9c (diff)
games/dunelegacy: Added (real-time strategy game)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--games/dunelegacy/README22
-rw-r--r--games/dunelegacy/doinst.sh3
-rw-r--r--games/dunelegacy/dunelegacy.6175
-rw-r--r--games/dunelegacy/dunelegacy.SlackBuild91
-rw-r--r--games/dunelegacy/dunelegacy.info10
-rw-r--r--games/dunelegacy/slack-desc19
6 files changed, 320 insertions, 0 deletions
diff --git a/games/dunelegacy/README b/games/dunelegacy/README
new file mode 100644
index 0000000000000..9c52c343e2ee0
--- /dev/null
+++ b/games/dunelegacy/README
@@ -0,0 +1,22 @@
+Dune Legacy is an effort by a handful of developers to revitalize the
+first-ever real-time strategy game. The original game was the basis for
+the hugely successful Command and Conquer series, and the gameplay has
+been replicated an extended to a wide variety of storylines and series.
+
+Lead one of three interplanetary houses, Atreides, Harkonnen or Ordos,
+in an attempt to harvest the largest amount of spice from the sand
+dunes. Exchange your spice stockpiles for credits through refinement and
+build an army capable of thwarting attempts of the other houses to stop
+your harvesting!
+
+To hear the in-game music, install either freepats or eawpats.
+
+Dune Legacy is a game engine only. To play the game, you must have the
+data files (*.PAK) from the full version (not the demo) of the original
+game, in /usr/share/dunelegacy. More info here:
+
+http://sourceforge.net/apps/mediawiki/dunelegacy/index.php?title=Pakfilelist
+
+The manual for the original game can be found here:
+
+http://dune2k.com/Duniverse/Games/DuneII/Manual
diff --git a/games/dunelegacy/doinst.sh b/games/dunelegacy/doinst.sh
new file mode 100644
index 0000000000000..5fb28930db0b9
--- /dev/null
+++ b/games/dunelegacy/doinst.sh
@@ -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
diff --git a/games/dunelegacy/dunelegacy.6 b/games/dunelegacy/dunelegacy.6
new file mode 100644
index 0000000000000..0e4861e0b0ec9
--- /dev/null
+++ b/games/dunelegacy/dunelegacy.6
@@ -0,0 +1,175 @@
+.TH DUNELEGACY "6" "Jan 2012" "SlackBuilds.org" "Games"
+.SH NAME
+dunelegacy \- Engine for playing Westwood's "Dune II"
+.SH SYNOPSIS
+.B dunelegacy
+[\fIoptions...\fR]
+.SH DESCRIPTION
+Dune Legacy is an effort by a handful of developers to revitalize the
+first-ever real-time strategy game. The original game was the basis for
+the hugely successful Command and Conquer series, and the gameplay has
+been replicated an extended to a wide variety of storylines and series.
+.P
+Lead one of three interplanetary houses, Atreides, Harkonnen or Ordos,
+in an attempt to harvest the largest amount of spice from the sand
+dunes. Exchange your spice stockpiles for credits through refinement and
+build an army capable of thwarting attempts of the other houses to stop
+your harvesting!
+.P
+Dune Legacy is a game engine only. To play the game, you must have the
+data files (*.PAK) from the original game.
+.SH OPTIONS
+.TP
+\fB\-\-showlog\fR
+Print the debug log to stdout rather than a file.
+.TP
+\fB\-w\fR, \fB\-\-window\fR
+Start the game in a window (overrides .ini file setting).
+.TP
+\fB\-f\fR, \fB\-\-fullscreen\fR
+Start the game fullscreen (overrides .ini file setting).
+.TP
+\fB\-\-PlayerName\fR \fIname\fR
+Sets the player name to \fIname\fR, for multiplayer (overrides .ini file setting).
+.TP
+\fB\-\-ServerPort\fR \fIport\fR
+Sets the UDP network port to \fIport\fR, for multiplayer (overrides .ini file setting).
+Default port is 28747.
+.SH FILES
+.TP
+\fB/usr/share/dunelegacy/\fR, \fB~/.config/dunelegacy/data/\fR
+Game data files (PAK files) are searched for in these two directories.
+.br
+The
+data files may be named in upper\- or lowercase. See
+.nh
+\fI/usr/doc/dunelegacy-@VERSION@/Dune2-Versions.txt\fR
+.hy
+for details.
+.TP
+\fB~/.config/dunelegacy/Dune Legacy.ini\fR
+Game settings. This is a user\-editable file. See the comments in the file itself for
+more information. Will be created if it
+doesn't already exist.
+.TP
+\fB~/.config/dunelegacy/Dune Legacy.log\fR
+Log messages are written here, unless \fB\-\-showlog\fR is used.
+.TP
+\fB~/.config/dunelegacy/replay/\fR
+Replay data is stored here, for the game's "instant replay" feature.
+.TP
+\fB~/.config/dunelegacy/save/\fR
+Saved games are stored here.
+.SH CONTROLS
+.TP
+\fBEscape\fR
+Go to menu
+.TP
+\fBSpace\fR
+Pause game
+.TP
+\fBAlt + Enter\fR
+Toggle fullscreen
+.TP
+\fBAlt + Tab\fR
+Switch to other application
+.TP
+\fBPrintScreen or Ctrl + P\fR
+Save screenshot as ScreenshotX.bmp with increasing numbers for X
+.TP
+\fBEnter\fR
+Start/Stop chatting
+.TP
+\fBF1\fR
+Zoomlevel x1
+.TP
+\fBF2\fR
+Zoomlevel x2
+.TP
+\fBF3\fR
+Zoomlevel x3
+.TP
+\fBT\fR
+Toggle display of current game time
+.TP
+\fBF10\fR
+Toggle sound effects and voice
+.TP
+\fBF11\fR
+Toggle music
+.TP
+\fBF12\fR
+Toggle display of FPS
+.TP
+\fBUp, Down, Left or Right\fR
+Move on the map
+.TP
+\fBF5\fR
+Skip 30 seconds (only in singleplayer)
+.TP
+\fBF6\fR
+Skip 2 minutes (only in singleplayer)
+.TP
+\fB\-\fR
+Decrease gamespeed (only in singleplayer)
+.TP
+\fB+\fR
+Increase gamespeed (only in singleplayer)
+.TP
+\fBCtrl + (1 to 9)\fR
+Save the list of selected units as unit group 1 to 9
+.TP
+\fB1 to 9\fR
+Select units from unit group 1 to 9
+.TP
+\fBShift + (1 to 9)\fR
+Add all units from unit group 1 to 9 to the list of currently selected units
+.TP
+\fB0\fR
+Deselect all currently selected units
+.TP
+\fBCtrl + 0\fR
+Remove currently selected units form all unit groups (group 1-9)
+.TP
+\fBM\fR
+Order unit to move to some position
+.TP
+\fBA\fR
+Order selected units to attack some unit, structure or position
+.TP
+\fBR\fR
+Repair selected structure
+.TP
+\fBU\fR
+Upgrade selected structure
+.TP
+\fBP\fR
+Place a structure (if a construction yard is selected)
+.SH INTERNET MULTIPLAYER
+To play online via Internet, you have to manually enable port forwarding
+if you use a NAT Router. Forward the Dune Legacy Server Port (Default
+is 28747) from your NAT Router to your computer. Use the same port on
+your router as configured in Dune Legacy.
+.P
+Example: If your machine has IP 192.168.123.1 and you're using the
+default Dune Legacy Port, than forward port 28747 from your router to
+192.168.123.1:28747.
+.SH SEE ALSO
+The Dune II manual at http://dune2k.com/Duniverse/Games/DuneII/Manual
+.P
+The official (?) Dune II site at http://duneii.com/
+.SH AUTHORS
+Dune Legacy has been written by many people. e.g.:
+.br
+Anthony Cole (anthonycole81AThotmail.com.au) \- started this great game
+.br
+Olaf van der Spek
+.br
+Raal Goff (gumbyATleemingwireless.net)
+.br
+Stefen Hendriks \- random map generator: MapGenerator.cpp
+.br
+Richard Schaller (richard.schallerATgmx.de)
+.P
+This man page written by B. Watson for the SlackBuilds.org project,
+but it may be freely used by anyone for any purpose.
diff --git a/games/dunelegacy/dunelegacy.SlackBuild b/games/dunelegacy/dunelegacy.SlackBuild
new file mode 100644
index 0000000000000..f909687bd012c
--- /dev/null
+++ b/games/dunelegacy/dunelegacy.SlackBuild
@@ -0,0 +1,91 @@
+#!/bin/bash
+
+# Slackware build script for dunelegacy
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=dunelegacy
+VERSION=${VERSION:-0.96.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -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
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Use our CFLAGS. Environment is ignored by configure script.
+sed -i "s/-O3/$SLKCFLAGS/" configure
+
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+# Man page written for this SlackBuild.
+mkdir -p $PKG/usr/man/man6
+sed "s/@VERSION@/$VERSION/g" $CWD/$PRGNAM.6 \
+ | gzip -9c > $PKG/usr/man/man6/$PRGNAM.6.gz
+
+mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
+cat $PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+cat $PRGNAM-128x128.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+ln -s ../../share/$PRGNAM/Dune2-Versions.txt $PKG/usr/doc/$PRGNAM-$VERSION
+
+cp -a \
+ AUTHORS COPYING ChangeLog NEWS README *.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
+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/dunelegacy/dunelegacy.info b/games/dunelegacy/dunelegacy.info
new file mode 100644
index 0000000000000..de3a73fa81337
--- /dev/null
+++ b/games/dunelegacy/dunelegacy.info
@@ -0,0 +1,10 @@
+PRGNAM="dunelegacy"
+VERSION="0.96.2"
+HOMEPAGE="http://dunelegacy.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/project/dunelegacy/dunelegacy/0.96.2/dunelegacy-0.96.2-src.tar.bz2"
+MD5SUM="5afc9169e52552042b51502ba02e5f7e"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
+APPROVED="dsomero"
diff --git a/games/dunelegacy/slack-desc b/games/dunelegacy/slack-desc
new file mode 100644
index 0000000000000..22735ade15a45
--- /dev/null
+++ b/games/dunelegacy/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------------------------------------------------------|
+dunelegacy: dunelegacy (real-time strategy game)
+dunelegacy:
+dunelegacy: Dune Legacy is an effort by a handful of developers to revitalize the
+dunelegacy: first-ever real-time strategy game. The original game was the basis for
+dunelegacy: the hugely successful Command and Conquer series, and the gameplay has
+dunelegacy: been replicated an extended to a wide variety of storylines and series.
+dunelegacy: Lead one of three interplanetary houses, Atreides, Harkonnen or Ordos,
+dunelegacy: in an attempt to harvest the largest amount of spice from the sand
+dunelegacy: dunes. Exchange your spice stockpiles for credits through refinement
+dunelegacy: and build an army capable of thwarting attempts of the other houses
+dunelegacy: to stop your harvesting!