diff options
author | David Melik <dchmelik@gmail.com> | 2013-01-01 00:31:52 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2013-01-01 00:39:15 -0500 |
commit | 172d58e8fa6195db10f680ea689f9b366f0eb796 (patch) | |
tree | 85c3b45d2b85302bf87fde1c5737ec58e65a48b4 /games/tome/tome.SlackBuild | |
parent | e9b2113668bf2bc1bde70e8173d7cffcdd967e53 (diff) | |
download | slackbuilds-172d58e8fa6195db10f680ea689f9b366f0eb796.tar.gz |
games/tome: Misc build cleanups.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/tome/tome.SlackBuild')
-rw-r--r-- | games/tome/tome.SlackBuild | 23 |
1 files changed, 15 insertions, 8 deletions
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 |