games/warsow: Updated for version 2.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Kevin Paulus 2016-08-05 07:20:46 +07:00 committed by Willy Sudiarto Raharjo
parent b4fbcf63d0
commit ac8d4ef4f0
2 changed files with 18 additions and 24 deletions

View file

@ -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

View file

@ -1,10 +1,10 @@
PRGNAM="warsow"
VERSION="2.01"
VERSION="2.1"
HOMEPAGE="http://www.warsow.net/"
DOWNLOAD="http://update.warsow.net/mirror/warsow_201_unified.tar.gz \
http://update.warsow.net/mirror/warsow_201_sdk.tar.gz"
MD5SUM="fee194075847f9a2508f65da89b6cfea \
e66809592094f45ec853b460ccaaa579"
DOWNLOAD="http://update.warsow.net/mirror/warsow_21_unified.tar.gz \
http://update.warsow.net/mirror/warsow_21_sdk.tar.gz"
MD5SUM="fac70b30d7295c0bc4c3f0432c4b7937 \
56c02b5e9bd6f921fbc980e868c2b48d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="OpenAL SDL2"