aboutsummaryrefslogtreecommitdiff
path: root/games/vcmi/vcmi.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/vcmi/vcmi.SlackBuild')
-rw-r--r--games/vcmi/vcmi.SlackBuild19
1 files changed, 14 insertions, 5 deletions
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