diff options
author | Petar Petrov <slackalaxy@gmail.com> | 2021-05-18 17:23:45 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-05-18 23:40:19 +0700 |
commit | 409e1b32e4a239bd07ccd8634b63daceab0517bd (patch) | |
tree | 9a208d27d3b1c942ecdcb8bac7771e824004249d | |
parent | 99a461873b0e0b2f36b65a69467cad36ab451785 (diff) |
games/vcmi. update for version 0.99_gitb310f2e
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/vcmi/README | 13 | ||||
-rw-r--r-- | games/vcmi/README.GameData | 6 | ||||
-rw-r--r-- | games/vcmi/slack-desc | 2 | ||||
-rw-r--r-- | games/vcmi/vcmi.SlackBuild | 19 | ||||
-rw-r--r-- | games/vcmi/vcmi.info | 8 |
5 files changed, 34 insertions, 14 deletions
diff --git a/games/vcmi/README b/games/vcmi/README index 2a0a5a200ffa..66b8c5bfda04 100644 --- a/games/vcmi/README +++ b/games/vcmi/README @@ -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. diff --git a/games/vcmi/README.GameData b/games/vcmi/README.GameData new file mode 100644 index 000000000000..0ca673580667 --- /dev/null +++ b/games/vcmi/README.GameData @@ -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 diff --git a/games/vcmi/slack-desc b/games/vcmi/slack-desc index 395545c79119..784dec13044d 100644 --- a/games/vcmi/slack-desc +++ b/games/vcmi/slack-desc @@ -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: diff --git a/games/vcmi/vcmi.SlackBuild b/games/vcmi/vcmi.SlackBuild index 46cde39a3c4e..0a1acfb0e8f3 100644 --- a/games/vcmi/vcmi.SlackBuild +++ b/games/vcmi/vcmi.SlackBuild @@ -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 diff --git a/games/vcmi/vcmi.info b/games/vcmi/vcmi.info index 90a2ade51f2f..b63af655adc9 100644 --- a/games/vcmi/vcmi.info +++ b/games/vcmi/vcmi.info @@ -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" |