summaryrefslogtreecommitdiffstats
path: root/games/fizmo/fizmo.SlackBuild
diff options
context:
space:
mode:
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