games/vcmi. update for version 0.99_gitb310f2e

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Petar Petrov 2021-05-18 17:23:45 +03:00 committed by Willy Sudiarto Raharjo
parent 99a461873b
commit 409e1b32e4
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
5 changed files with 34 additions and 14 deletions

View File

@ -14,8 +14,13 @@ of features. Among the current features are:
- Random map generator that supports objects added by mods
NOTE!
You need the original game data to use this.
You need the original game data to use this, and most likely you will
need innoextract (available at SBo), in order to unpack it from the exe.
As an example, for the GOG edition of HOMM3, do this as a regular user:
HowTo:
You can find a step-by-step tutorial for setting up the game here:
https://slackalaxy.wordpress.com/2015/05/02/heroes-iii/
$ vcmibuilder --gog /path/to/setup_homm3_complete_2.0.0.16.exe
$ vcmibuilder --convertMP3
Alternatively, you may try VCMI with the Heroes III Demo game data,
available at SBo as 'homm3_shareware_data'. It is installed system-wide,
so you can always use the full game data in your $HOME folder.

View File

@ -0,0 +1,6 @@
You need the original game data to use this, and most likely you will
need innoextract (available at SBO), in order to unpack it from the exe.
As an example, for the GOG edition of HOMM3, do this as a regular user:
$ vcmibuilder --gog /path/to/setup_homm3_complete_2.0.0.16.exe
$ vcmibuilder --convertMP3

View File

@ -13,7 +13,7 @@ vcmi: engine (VCMI is NOT another mod) giving it new possibilities.
vcmi: Years of intensive work resulted in creating application with
vcmi: impressive amount of features.
vcmi:
vcmi: Home: http://forum.vcmi.eu/portal.php
vcmi: https://vcmi.eu/
vcmi:
vcmi:
vcmi:

View File

@ -2,8 +2,8 @@
# Slackware build script for vcmi
# Copyright 2015-2021 Petar Petrov slackalaxy@gmail.com
# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
# Copyright 2015-2016 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,10 +24,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=vcmi
VERSION=${VERSION:-0.99}
VERSION=${VERSION:-0.99_gitb310f2e}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
COMMIT="b310f2e61ece1ab550614cf1b99b04830820700c"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@ -60,9 +62,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf ${PRGNAM}-${COMMIT}
tar xvf $CWD/${PRGNAM}-${COMMIT}.tar.gz
cd ${PRGNAM}-${COMMIT}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -70,12 +72,18 @@ 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 {} \;
# Disable the bundled dependencies and do not perform tests, as we don't
# have googletest on SBo. Is this option necessary to parse to cmake?
# -DCMAKE_DL_LIBS=/usr/lib${LIBDIRSUFFIX} \
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_DIR=lib${LIBDIRSUFFIX} \
-DFORCE_BUNDLED_FL=FALSE \
-DENABLE_TEST=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
@ -87,6 +95,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README.GameData > $PKG/usr/doc/$PRGNAM-$VERSION/README.GameData
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View File

@ -1,10 +1,10 @@
PRGNAM="vcmi"
VERSION="0.99"
VERSION="0.99_gitb310f2e"
HOMEPAGE="http://forum.vcmi.eu/portal.php"
DOWNLOAD="https://github.com/vcmi/vcmi/archive/0.99/vcmi-0.99.tar.gz"
MD5SUM="686c2a0283184add785d50b447db806f"
DOWNLOAD="https://github.com/vcmi/vcmi/archive/b310f2e/vcmi-b310f2e61ece1ab550614cf1b99b04830820700c.tar.gz"
MD5SUM="a748224758e2b1548d5e2b7ef8c22195"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fuzzylite"
REQUIRES="fuzzylite libminizip"
MAINTAINER="Petar Petrov"
EMAIL="slackalaxy@gmail.com"