aboutsummaryrefslogtreecommitdiff
path: root/games/tome
diff options
context:
space:
mode:
authorDavid Melik <dchmelik@gmail.com>2013-01-01 00:31:52 -0500
committerdsomero <xgizzmo@slackbuilds.org>2013-01-01 00:39:15 -0500
commit172d58e8fa6195db10f680ea689f9b366f0eb796 (patch)
tree85c3b45d2b85302bf87fde1c5737ec58e65a48b4 /games/tome
parente9b2113668bf2bc1bde70e8173d7cffcdd967e53 (diff)
games/tome: Misc build cleanups.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/tome')
-rw-r--r--games/tome/README11
-rw-r--r--games/tome/doinst.sh17
-rw-r--r--games/tome/slack-desc9
-rw-r--r--games/tome/tomebin0 -> 178 bytes
-rw-r--r--games/tome/tome.SlackBuild23
5 files changed, 27 insertions, 33 deletions
diff --git a/games/tome/README b/games/tome/README
index d3efaef425ce8..8e0b972f935b1 100644
--- a/games/tome/README
+++ b/games/tome/README
@@ -1,4 +1,9 @@
-ToMe is a game that emphasizes intricate, challenging, and varied gameplay
-over graphics. Hundreds of different monsters in randomly-generated,
-unpredictable dungeons will strive to slay you by various means
+ToME is a game that emphasizes intricate, challenging, and varied gameplay over
+graphics. Hundreds of different monsters in randomly-generated, unpredictable
+dungeons will strive to slay you by various means, and you counter - if you
+survive - by developing the skills of your choice and wielding mighty
+artifacts.
+
+forum homepage: http://te4.org/
+Usenet newsgroup: nntp://rec.games.roguelike.angband
diff --git a/games/tome/doinst.sh b/games/tome/doinst.sh
index 4228e4bbf2628..5fb28930db0b9 100644
--- a/games/tome/doinst.sh
+++ b/games/tome/doinst.sh
@@ -1,20 +1,3 @@
-#!/bin/sh
-config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
-
-#config var/games/tome/apex/scores.raw.new
-
diff --git a/games/tome/slack-desc b/games/tome/slack-desc
index b63336f046814..2c01bb5f55c40 100644
--- a/games/tome/slack-desc
+++ b/games/tome/slack-desc
@@ -8,13 +8,12 @@
|-----handy-ruler------------------------------------------------------|
tome: ToME (Tales of Middle Earth - a fantasy adventure game)
tome:
-tome: ToMe is a game that emphasizes intricate, challenging, and varied
+tome: ToME is a game that emphasizes intricate, challenging, and varied
tome: gameplay over graphics. Hundreds of different monsters in randomly-
tome: generated, unpredictable dungeons will strive to slay you by various
tome: means, and you counter - if you survive - by developing the skills of
-tome: your choice and wielding mighty artifacts
+tome: your choice and wielding mighty artifacts.
tome:
-tome: http://www.t-o-m-e.net
+tome: forum homepage: http://te4.org/
+tome: Usenet newsgroup: nntp://rec.games.roguelike.angband
tome:
-tome:
-
diff --git a/games/tome/tome b/games/tome/tome
new file mode 100644
index 0000000000000..54d866a45c633
--- /dev/null
+++ b/games/tome/tome
Binary files differ
diff --git a/games/tome/tome.SlackBuild b/games/tome/tome.SlackBuild
index be1ce9a07f520..b4d0b32fdcd69 100644
--- a/games/tome/tome.SlackBuild
+++ b/games/tome/tome.SlackBuild
@@ -1,17 +1,18 @@
#!/bin/sh
-# Slackware build script for Tome
+# Slackware build script for ToME
# Written by David Melik <dchmelik @ gmail dot com>.
-# with help from a friend.
+# with help from some friends.
# Partly based on Marshall Scott's Angband SlackBuild.
PRGNAM=tome
VERSION=${VERSION:-v2.3.11_ah}
-SRCVER=$(echo $VERSION | tr _ -)
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+SRCVER=$(echo $VERSION | tr _ -)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -60,12 +61,16 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr/share/games/$PRGNAM \
- -DSYSTEM_INSTALL:BOOL=true \
- -DCMAKE_BUILD_TYPE=Release ..
- make
+ -DLIB_SUFFIX=/var/games/$PRGNAM \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DSYSTEM_INSTALL:BOOL=true ..
+ make
make install DESTDIR=$PKG
cd -
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+
install -m 0755 $CWD/$PRGNAM.sh $PKG/usr/share/games/$PRGNAM/bin/$PRGNAM.sh
mkdir -p $PKG/usr/games
ln -fs /usr/share/games/$PRGNAM/bin/$PRGNAM.sh $PKG/usr/games/$PRGNAM
@@ -79,7 +84,9 @@ install -m 0644 -D $CWD/$PRGNAM.desktop \
$PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a changes.txt credits.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a BUGS.txt changes.txt credits.txt \
+ $PKG/usr/share/games/$PRGNAM/lib/$PRGNAM/help \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install