summaryrefslogtreecommitdiff
path: root/games/tome/tome.SlackBuild
diff options
context:
space:
mode:
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 b15e84c02d..be1ce9a07f 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