games/stratagus: Fix -current build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-11-19 14:24:37 -05:00 committed by Willy Sudiarto Raharjo
parent 34312e7a6e
commit c6908a839f
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -43,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -85,6 +82,9 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
# share/doc/$PRGNAM, so:
sed -i "s,share/doc/$PRGNAM,doc/$PRGNAM-$VERSION," CMakeLists.txt
# 20211119 bkw: fix compile with -current's gcc.
sed -i 's,"_C_," _C_,' src/ai/ai_plan.cpp src/stratagus/script.cpp
mkdir -p build
cd build
cmake \