aboutsummaryrefslogtreecommitdiff
path: root/games/tome/tome.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/tome/tome.SlackBuild')
-rw-r--r--games/tome/tome.SlackBuild23
1 files changed, 15 insertions, 8 deletions
diff --git a/games/tome/tome.SlackBuild b/games/tome/tome.SlackBuild
index be1ce9a07f52..b4d0b32fdcd6 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