aboutsummaryrefslogtreecommitdiff
path: root/games/warsow/warsow.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/warsow/warsow.SlackBuild')
-rw-r--r--games/warsow/warsow.SlackBuild32
1 files changed, 13 insertions, 19 deletions
diff --git a/games/warsow/warsow.SlackBuild b/games/warsow/warsow.SlackBuild
index 39fdda2ecf835..5d882a06da955 100644
--- a/games/warsow/warsow.SlackBuild
+++ b/games/warsow/warsow.SlackBuild
@@ -24,7 +24,7 @@
# Updated by goarilla <goarilla@gmail.com>
PRGNAM=warsow
-VERSION=${VERSION:-2.01}
+VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,38 +60,32 @@ mkdir -p "${PKG}/usr/share/${PRGNAM}"
mkdir -p "${PKG}/usr/doc/${PRGNAM}-${VERSION}"
# no parent directory
-SDK="warsow_201_sdk.tar.gz"
+SDK="warsow_21_sdk.tar.gz"
# ./warsow_20
-DATA="warsow_201_unified.tar.gz"
+DATA="warsow_21_unified.tar.gz"
-tar -C "${PKG}/usr/doc/${PRGNAM}-${VERSION}" -xvf "$DATA" warsow_20/docs/
-mv "${PKG}/usr/doc/${PRGNAM}-${VERSION}/warsow_20/docs/"* "${PKG}/usr/doc/${PRGNAM}-${VERSION}/"
-rm -rf "${PKG}/usr/doc/${PRGNAM}-${VERSION}/warsow_20/"
-tar -C "${PKG}/usr/share/${PRGNAM}" -xvf "$DATA" warsow_20/basewsw
-mv "${PKG}/usr/share/${PRGNAM}/warsow_20/"* "${PKG}/usr/share/${PRGNAM}"
-rm -rf "${PKG}/usr/share/${PRGNAM}/warsow_20/"
+tar -C "${PKG}/usr/doc/${PRGNAM}-${VERSION}" -xvf "$DATA" ./warsow_21/docs/
+mv "${PKG}/usr/doc/${PRGNAM}-${VERSION}/warsow_21/docs/"* "${PKG}/usr/doc/${PRGNAM}-${VERSION}/"
+rm -rf "${PKG}/usr/doc/${PRGNAM}-${VERSION}/warsow_21/"
+tar -C "${PKG}/usr/share/${PRGNAM}" -xvf "$DATA" ./warsow_21/basewsw
+mv "${PKG}/usr/share/${PRGNAM}/warsow_21/"* "${PKG}/usr/share/${PRGNAM}"
+rm -rf "${PKG}/usr/share/${PRGNAM}/warsow_21/"
# unpack sdk
-tar -C "${TMP}/${PRGNAM}-${VERSION}" -xvf "$SDK"
+tar -C "${TMP}/${PRGNAM}-${VERSION}" -xvf "$SDK" warsow_21_sdk/
# build
cd "${TMP}/${PRGNAM}-${VERSION}"
-cd source/source
-cmake .
+cd warsow_21_sdk/source/source
+cmake -DQFUSION_GAME="Warsow" .
make
# copy build
-cp -rf build/ "${PKG}/usr/share/${PRGNAM}/"
+cp -rf build/wsw* build/warsow* build/libs "${PKG}/usr/share/${PRGNAM}/"
# shuffle some files
cd "$PKG"
cd "usr/share/${PRGNAM}"
-mv basewsw basewsw.old
-mv build/* .
-mv basewsw/* basewsw.old/
-rm -rf basewsw/
-mv basewsw.old/ basewsw/
-rm -rf build
cp "${CWD}/${PRGNAM}.SlackBuild" "${PKG}/usr/doc/${PRGNAM}-${VERSION}"
# fix permissions of executables