diff options
author | Kevin Paulus <goarilla@gmail.com> | 2016-08-05 07:20:46 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-05 07:20:46 +0700 |
commit | ac8d4ef4f017c6ebe470d19767b4ca214725374c (patch) | |
tree | 9c3846657b17404f8cc05bc49e0c4c5349149ed5 /games/warsow/warsow.SlackBuild | |
parent | b4fbcf63d055b44d11b164fb66b2e4856f71c354 (diff) |
games/warsow: Updated for version 2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/warsow/warsow.SlackBuild')
-rw-r--r-- | games/warsow/warsow.SlackBuild | 32 |
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 |