aboutsummaryrefslogtreecommitdiff
path: root/games/tome/tome.SlackBuild
diff options
context:
space:
mode:
authorDavid Melik <dchmelik@gmail.com>2012-12-27 07:17:16 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-27 17:56:19 +0100
commit9ba49d484c5a6a5596e795f9eacc0f59610e361a (patch)
treeb21a138b01e3d4acc1313af65dfcff721091307e /games/tome/tome.SlackBuild
parentee936c7505b97c35f33cdd5cc29a296d3afe797c (diff)
games/tome: Updated for version v2.3.11_ah.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/tome/tome.SlackBuild')
-rw-r--r--games/tome/tome.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/tome/tome.SlackBuild b/games/tome/tome.SlackBuild
index b15e84c02d6f5..be1ce9a07f520 100644
--- a/games/tome/tome.SlackBuild
+++ b/games/tome/tome.SlackBuild
@@ -7,7 +7,8 @@
# Partly based on Marshall Scott's Angband SlackBuild.
PRGNAM=tome
-VERSION=${VERSION:-v2.3.10_ah}
+VERSION=${VERSION:-v2.3.11_ah}
+SRCVER=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,9 +44,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
-cd $PRGNAM-$VERSION
+rm -rf tome2-tome2
+tar xvf $CWD/tome2-tome2-$SRCVER.tar.gz
+cd tome2-tome2
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -60,7 +61,6 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr/share/games/$PRGNAM \
-DSYSTEM_INSTALL:BOOL=true \
- -DLIBS:STRING="-lm" \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
@@ -68,7 +68,7 @@ cd -
install -m 0755 $CWD/$PRGNAM.sh $PKG/usr/share/games/$PRGNAM/bin/$PRGNAM.sh
mkdir -p $PKG/usr/games
-ln -fs /usr/share/games/tome/bin/$PRGNAM.sh $PKG/usr/games/$PRGNAM
+ln -fs /usr/share/games/$PRGNAM/bin/$PRGNAM.sh $PKG/usr/games/$PRGNAM
find $PKG -name "delete.me" | xargs rm -f
find $PKG -name ".cvsignore" | xargs rm -f