summaryrefslogtreecommitdiffstats
path: root/games/fizmo/fizmo.SlackBuild
diff options
context:
space:
mode:
author B. Watson2016-10-15 10:13:31 +0200
committer Willy Sudiarto Raharjo2016-10-22 03:47:29 +0200
commitb0265adebbedb53bcc248fb57eaef9be8f8f1496 (patch)
tree3d43289d1aac8b6a29dc8d04e6b3f3484f8147d8 /games/fizmo/fizmo.SlackBuild
parentd40d9c1f5c5cb983aad8c13bae3475e24e0b901b (diff)
downloadslackbuilds-b0265adebbedb53bcc248fb57eaef9be8f8f1496.tar.gz
games/fizmo: Updated for version 0.8.2, docs, /usr/games.
Diffstat (limited to 'games/fizmo/fizmo.SlackBuild')
-rw-r--r--games/fizmo/fizmo.SlackBuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/games/fizmo/fizmo.SlackBuild b/games/fizmo/fizmo.SlackBuild
index e5a1832c07..765302bc33 100644
--- a/games/fizmo/fizmo.SlackBuild
+++ b/games/fizmo/fizmo.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=fizmo
-VERSION=${VERSION:-0.7.10}
+VERSION=${VERSION:-0.8.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,12 +53,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# 0.7.7 finds ncursesw correctly now (it used to need a .pc file or
-# configure overrides).
+# the configure script doesn't autodetect when sdl2 is missing,
+# so let's help it out a little.
+pkg-config --exists sdl2 || SDLARG="--disable-sdl"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
+ "$SDLARG" \
+ --bindir=/usr/games \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -69,11 +72,14 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
-ln -s $PRGNAM-ncursesw $PKG/usr/bin/$PRGNAM
+ln -s $PRGNAM-ncursesw $PKG/usr/games/$PRGNAM
gzip -9 $PKG/usr/man/man6/*.6
ln -s $PRGNAM-ncursesw.6.gz $PKG/usr/man/man6/$PRGNAM.6.gz
+( cd doc ; ./create-txts.sh )
+rm -f INSTALL.txt QUICKSTART.txt # don't need install instructions
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild