diff options
-rw-r--r-- | games/tome/README | 11 | ||||
-rw-r--r-- | games/tome/doinst.sh | 17 | ||||
-rw-r--r-- | games/tome/slack-desc | 9 | ||||
-rw-r--r-- | games/tome/tome | bin | 0 -> 178 bytes | |||
-rw-r--r-- | games/tome/tome.SlackBuild | 23 |
5 files changed, 27 insertions, 33 deletions
diff --git a/games/tome/README b/games/tome/README index d3efaef425..8e0b972f93 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 4228e4bbf2..5fb28930db 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 b63336f046..2c01bb5f55 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 Binary files differnew file mode 100644 index 0000000000..54d866a45c --- /dev/null +++ b/games/tome/tome diff --git a/games/tome/tome.SlackBuild b/games/tome/tome.SlackBuild index be1ce9a07f..b4d0b32fdc 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 |