summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/openttd/README10
-rw-r--r--games/openttd/doinst.sh8
-rw-r--r--games/openttd/openttd.SlackBuild40
-rw-r--r--games/openttd/openttd.info8
-rw-r--r--games/openttd/slack-desc12
5 files changed, 39 insertions, 39 deletions
diff --git a/games/openttd/README b/games/openttd/README
index 3239d933d8..0ae94bb9ba 100644
--- a/games/openttd/README
+++ b/games/openttd/README
@@ -1,13 +1,13 @@
-OpenTTD is a clone of the Microprose game "Transport Tycoon Deluxe,"
-a popular game originally written by Chris Sawyer. Significant
-enhancements from the original game include bigger maps, new AI,
+OpenTTD is a clone of the Microprose game "Transport Tycoon Deluxe,"
+a popular game originally written by Chris Sawyer. Significant
+enhancements from the original game include bigger maps, new AI,
stable multiplayer mode, dedicated server mode, and many in-game updates.
-Several original Windows data files must be copied into the
+Several original Windows data files must be copied into the
/usr/share/games/openttd/data directory before the game can be played.
List of the required files:
sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf
-
+
Again, several original files must be copied from the game cd or equivalent.
See the readme.txt or http://wiki.openttd.org for more information.
diff --git a/games/openttd/doinst.sh b/games/openttd/doinst.sh
index 474753e464..1be07cc6d6 100644
--- a/games/openttd/doinst.sh
+++ b/games/openttd/doinst.sh
@@ -1,8 +1,8 @@
-if [ -x usr/bin/update-desktop-database ]; then
- ./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
fi
-if [ -x usr/bin/update-mime-database ]; then
- ./usr/bin/update-mime-database ./usr/share/mime >/dev/null 2>&1
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
diff --git a/games/openttd/openttd.SlackBuild b/games/openttd/openttd.SlackBuild
index 15323f40c1..d6496e8e5c 100644
--- a/games/openttd/openttd.SlackBuild
+++ b/games/openttd/openttd.SlackBuild
@@ -1,26 +1,28 @@
#!/bin/sh
-# Slackware build script for OpenTTD
+# Slackware build script for OpenTTD
# Written by Chess Griffin <chess@chessgriffin.com>
-PRGNAM=openttd
-VERSION=0.5.3
-ARCH=${ARCH:-i486}
+PRGNAM=openttd
+VERSION=0.6.3
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+TAG=${TAG:-_SBo}
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
-DOCS="BUGS COPYING changelog.txt known-bugs.txt readme.txt docs/*"
+DOCS="COPYING changelog.txt known-bugs.txt readme.txt docs/*"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e # Exit on most errors
@@ -40,18 +42,16 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-make INSTALL=1 \
- PREFIX=/usr \
- BINARY_DIR=/games \
- DATA_DIR=/share/games/openttd \
- ICON_DIR=/share/pixmaps \
- PERSONAL_DIR=.openttd \
- USE_HOMEDIR=1 \
- WITH_ZLIB=1 \
- UNIX=1 \
- VERBOSE=1
-
-make install INSTALL:=1 DEST_DIR=$PKG
+./configure \
+ --prefix-dir=/usr \
+ --binary-dir=/games \
+ --data-dir=/share/games/openttd \
+ --icon-dir=/share/pixmaps \
+ --personal-dir=.openttd \
+ --install-dir=$PKG
+
+make
+make install DEST_DIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/games/openttd/openttd.info b/games/openttd/openttd.info
index 8d5ae6a245..8e50f2c827 100644
--- a/games/openttd/openttd.info
+++ b/games/openttd/openttd.info
@@ -1,8 +1,8 @@
PRGNAM="openttd"
-VERSION="0.5.3"
+VERSION="0.6.3"
HOMEPAGE="http://www.openttd.org"
-DOWNLOAD="http://downloads.sourceforge.net/openttd/openttd-0.5.3-source.tar.bz2"
-MD5SUM="592c047903a3e7f17f95279f77b8a1dd"
+DOWNLOAD="http://downloads.sourceforge.net/openttd/openttd-0.6.3-source.tar.bz2"
+MD5SUM="d05b9ebf67c83f07e8286d0d2b1fc293"
MAINTAINER="Chess Griffin"
EMAIL="chess@chessgriffin.com"
-APPROVED="David Somero" \ No newline at end of file
+APPROVED="Erik Hanson"
diff --git a/games/openttd/slack-desc b/games/openttd/slack-desc
index 43efb9d6c3..416732a6ab 100644
--- a/games/openttd/slack-desc
+++ b/games/openttd/slack-desc
@@ -7,13 +7,13 @@
|-----handy-ruler------------------------------------------------------|
openttd: OpenTTD (open-source clone of Transport Tycoon Deluxe)
-openttd:
-openttd: OpenTTD is a clone of the Microprose game "Transport Tycoon
+openttd:
+openttd: OpenTTD is a clone of the Microprose game "Transport Tycoon
openttd: Deluxe," a popular game originally written by Chris Sawyer.
-openttd: Significant enhancements from the original game include
+openttd: Significant enhancements from the original game include
openttd: bigger maps, new AI, stable multiplayer mode, dedicated
openttd: server mode, and many in-game updates.
-openttd:
-openttd: Homepage: http://www.openttd.org
-openttd:
+openttd:
+openttd: Homepage: http://www.openttd.org
+openttd:
openttd: