games/warsow: Fix 15.0 build.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2022-02-21 13:22:56 -05:00 committed by Robby Workman
parent af4e4958bb
commit 8f7252d8a8

View file

@ -24,6 +24,8 @@
# Updated by goarilla <goarilla@gmail.com>
# Updated to v2.1.2 by SlackBuilds.org: version 2.1 was broken.
# 20220221 bkw: Modified by SlackBuilds.org: fix build on 15.0.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=warsow
@ -38,9 +40,6 @@ case "$( uname -m )" in
*) ARCH=$( uname -m ) ;;
esac
# 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,11 +84,16 @@ rm -rf "${PKG}/usr/share/${PRGNAM}/warsow-2.1.2/"
# unpack sdk
tar -C "${TMP}/${PRGNAM}-${VERSION}" -xvf "$SDK" warsow_21_sdk/
SLKCFLAGS+=" -fcommon"
# build
cd "${TMP}/${PRGNAM}-${VERSION}"
cd warsow_21_sdk/source/source
cmake -DQFUSION_GAME="Warsow" .
make
cmake \
-DQFUSION_GAME="Warsow" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
.
make VERBOSE=1
# copy build
cp -rf build/wsw* build/warsow* build/libs "${PKG}/usr/share/${PRGNAM}/"