summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2015-09-03 15:51:01 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-05 18:24:38 +0700
commit179ad421bf6d16f947b8c4a7c03a9b14096ea94b (patch)
tree5512cfb9029175f58f6fa564121913e0eb1619d5 /games
parentd03b49a3e11e49adb7a7e351dd480b6ab5ac29f0 (diff)
downloadslackbuilds-179ad421bf6d16f947b8c4a7c03a9b14096ea94b.tar.gz
games/freeminer: Updated for version 0.4.13.7.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'games')
-rw-r--r--games/freeminer/doinst.sh4
-rw-r--r--games/freeminer/freeminer.SlackBuild29
-rw-r--r--games/freeminer/freeminer.info8
3 files changed, 22 insertions, 19 deletions
diff --git a/games/freeminer/doinst.sh b/games/freeminer/doinst.sh
index 9424ce43ff..3e5691a052 100644
--- a/games/freeminer/doinst.sh
+++ b/games/freeminer/doinst.sh
@@ -2,10 +2,6 @@ if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
-if [ -x /usr/bin/update-mime-database ]; then
- /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
-fi
-
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
diff --git a/games/freeminer/freeminer.SlackBuild b/games/freeminer/freeminer.SlackBuild
index 461647ae40..174bec3a3e 100644
--- a/games/freeminer/freeminer.SlackBuild
+++ b/games/freeminer/freeminer.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for freeminer
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece
+# I thank Larry Hajali for update to version 0.4.13.7
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=freeminer
-VERSION=${VERSION:-0.4.12.6}
+VERSION=${VERSION:-0.4.13.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,16 +68,27 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Fix jsoncpp detection.
+sed -i 's|json/|jsoncpp/|' src/*.{h,cpp} src/script/*/*.cpp cmake/Modules/FindJson.cmake
mkdir -p build
cd build
cmake \
- -DRUN_IN_PLACE=0 \
+ -DRUN_IN_PLACE:BOOL=0 \
+ -DENABLE_SYSTEM_JSONCPP:BOOL=1 \
+ -DENABLE_SYSTEM_MSGPACK:BOOL=1 \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCUSTOM_BINDIR:PATH=games \
+ -DCUSTOM_MANDIR:PATH=man \
+ -DCUSTOM_LOCALEDIR:PATH=share/locale \
+ -DCUSTOM_DOCDIR:PATH=doc/$PRGNAM-$VERSION \
+ -DCUSTOM_EXAMPLE_CONF_DIR:PATH=doc/$PRGNAM-$VERSION \
-DCMAKE_BUILD_TYPE=Release ..
+
make
make install DESTDIR=$PKG
cd ..
@@ -84,15 +96,10 @@ 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 LICENSE.txt README.md doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE.txt *md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/games/freeminer/freeminer.info b/games/freeminer/freeminer.info
index 00c707dca8..330d1ff33d 100644
--- a/games/freeminer/freeminer.info
+++ b/games/freeminer/freeminer.info
@@ -1,10 +1,10 @@
PRGNAM="freeminer"
-VERSION="0.4.12.6"
+VERSION="0.4.13.7"
HOMEPAGE="http://freeminer.org/"
-DOWNLOAD="https://github.com/freeminer/freeminer/archive/0.4.12.6.tar.gz"
-MD5SUM="69b208e741cec259696bd9b53b68252c"
+DOWNLOAD="https://github.com/freeminer/freeminer/archive/0.4.13.7.tar.gz"
+MD5SUM="902ae3142a5bcf57fbf9f8c2a36bebe9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="OpenAL luajit irrlicht enet msgpack-c"
+REQUIRES="OpenAL luajit irrlicht enet msgpack-c jsoncpp"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"