summaryrefslogtreecommitdiff
path: root/games/minetest/minetest.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/minetest/minetest.SlackBuild')
-rw-r--r--games/minetest/minetest.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/games/minetest/minetest.SlackBuild b/games/minetest/minetest.SlackBuild
index b2d82a5041..7de6b197bd 100644
--- a/games/minetest/minetest.SlackBuild
+++ b/games/minetest/minetest.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for minetest
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=minetest
-VERSION=${VERSION:-0.4.12}
+VERSION=${VERSION:-0.4.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Fix man page path
+sed -i "s/share\/man/man/" CMakeLists.txt
+
mkdir -p build
cd build
cmake \
@@ -84,15 +87,11 @@ 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 || true
-mkdir -p $PKG/usr/man
-mv $PKG/usr/share/man/man6 $PKG/usr/man
-rm -rf $PKG/usr/share/man
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.txt doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.txt minetest.conf* doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install