mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
games/warsow: Updated for version 1.51 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
96eb0adf56
commit
d5747e4dd4
2 changed files with 41 additions and 32 deletions
|
@ -21,13 +21,15 @@
|
||||||
|
|
||||||
# Written by Andre Barboza <bmg.andre@gmail.com>
|
# Written by Andre Barboza <bmg.andre@gmail.com>
|
||||||
# Updated by drhouse <housegregory299@gmail.com>
|
# Updated by drhouse <housegregory299@gmail.com>
|
||||||
|
# Updated by goarilla <goarilla@gmail.com>
|
||||||
|
# It now packages the unified tarball instead of compiling the source and merging the data
|
||||||
|
|
||||||
PRGNAM=warsow
|
PRGNAM=warsow
|
||||||
VERSION=${VERSION:-1.02}
|
VERSION=${VERSION:-1.51}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
BASE_VERSION=${BASE_VERSION:-1.02}
|
BASE_VERSION=${BASE_VERSION:-1.51}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
|
@ -49,42 +51,49 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG $TMP/$PRGNAM-$VERSION
|
rm -rf $PKG $TMP/$PRGNAM-$VERSION
|
||||||
mkdir -p $TMP/$PRGNAM-$VERSION $PKG $OUTPUT
|
mkdir -p $TMP/$PRGNAM-$VERSION $PKG $OUTPUT
|
||||||
cd $TMP/$PRGNAM-$VERSION
|
cd $TMP/$PRGNAM-$VERSION
|
||||||
tar -xvvzf $CWD/"$PRGNAM"_"$BASE_VERSION"_sdk.tar.gz
|
tar -xvvzf "$CWD"/"$PRGNAM"_"$BASE_VERSION"_unified.tar.gz
|
||||||
tar -xvvzf $CWD/"$PRGNAM"_"$BASE_VERSION".tar.gz
|
|
||||||
cd "$PRGNAM"_"$BASE_VERSION"_sdk/source/
|
|
||||||
make -j1
|
|
||||||
cp -rv $TMP/$PRGNAM-$VERSION/"$PRGNAM"_"$BASE_VERSION"_sdk/source/release/* $TMP/$PRGNAM-$VERSION/"$PRGNAM"_"$BASE_VERSION"/
|
|
||||||
cd $TMP/$PRGNAM-$VERSION/"$PRGNAM"_"$BASE_VERSION"
|
|
||||||
#unzip -o $CWD/"$PRGNAM"_"$VERSION"_update.zip
|
|
||||||
chown -R root:root .
|
|
||||||
find -L . \
|
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
||||||
-exec chmod 755 {} \; -o \
|
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
||||||
-exec chmod 644 {} \;
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/warsow/libs
|
# warsow 1.51_unified base dir is warsow_15
|
||||||
install -D -m 0755 warsow.$EXESUFFIX $PKG/usr/share/warsow
|
cd "$PRGNAM"_"15"
|
||||||
install -D -m 0755 wsw_server.$EXESUFFIX $PKG/usr/share/warsow
|
|
||||||
install -D -m 0755 wswtv_server.$EXESUFFIX $PKG/usr/share/warsow
|
# remove windows files
|
||||||
|
find -L . -type f -iname '*.dll' -exec rm -vf -- '{}' \;
|
||||||
|
find -L . -type f -iname '*.exe' -exec rm -vf -- '{}' \;
|
||||||
|
|
||||||
|
# correct permissions
|
||||||
|
chown -R root:root .
|
||||||
|
# goarilla: plus 700
|
||||||
|
find -L . \
|
||||||
|
\( -perm 777 -o -perm 700 -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
mkdir -p $PKG/usr/games
|
mkdir -p $PKG/usr/games
|
||||||
|
|
||||||
|
# fix and place the wrapper scripts
|
||||||
cat warsow | sed 's|^BINARY_DIR=$|BINARY_DIR=/usr/share/warsow|' > $PKG/usr/games/warsow
|
cat warsow | sed 's|^BINARY_DIR=$|BINARY_DIR=/usr/share/warsow|' > $PKG/usr/games/warsow
|
||||||
cat wsw_server | sed 's|^BINARY_DIR=$|BINARY_DIR=/usr/share/warsow|' > $PKG/usr/games/wsw_server
|
cat wsw_server | sed 's|^BINARY_DIR=$|BINARY_DIR=/usr/share/warsow|' > $PKG/usr/games/wsw_server
|
||||||
cat wswtv_server | sed 's|^BINARY_DIR=$|BINARY_DIR=/usr/share/warsow|' > $PKG/usr/games/wswtv_server
|
cat wswtv_server | sed 's|^BINARY_DIR=$|BINARY_DIR=/usr/share/warsow|' > $PKG/usr/games/wswtv_server
|
||||||
(cd $PKG/usr/games; chmod 0755 *)
|
(cd $PKG/usr/games; chmod 0755 *)
|
||||||
|
|
||||||
install -D -m 0755 libs/angelwrap_$EXESUFFIX.so $PKG/usr/share/warsow/libs
|
|
||||||
install -D -m 0755 libs/irc_$EXESUFFIX.so $PKG/usr/share/warsow/libs
|
|
||||||
install -D -m 0755 libs/snd_openal_$EXESUFFIX.so $PKG/usr/share/warsow/libs
|
|
||||||
install -D -m 0755 libs/snd_qf_$EXESUFFIX.so $PKG/usr/share/warsow/libs
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/warsow/basewsw/
|
mkdir -p $PKG/usr/share/warsow/basewsw/
|
||||||
|
|
||||||
|
# copy executables
|
||||||
|
cp -a warsow.* "$PKG"/usr/share/warsow/
|
||||||
|
cp -a wsw_server.* "$PKG"/usr/share/warsow/
|
||||||
|
cp -a wswtv_server.* "$PKG"/usr/share/warsow/
|
||||||
|
|
||||||
|
# copy libs
|
||||||
|
cp -ra libs "$PKG"/usr/share/warsow/
|
||||||
|
|
||||||
|
# copy data
|
||||||
cp -ra basewsw/* $PKG/usr/share/warsow/basewsw/
|
cp -ra basewsw/* $PKG/usr/share/warsow/basewsw/
|
||||||
|
|
||||||
|
# copy icons and slacbuild
|
||||||
mkdir -p $PKG/usr/share/pixmaps/
|
mkdir -p $PKG/usr/share/pixmaps/
|
||||||
cat $CWD/warsow.png > $PKG/usr/share/pixmaps/warsow.png
|
cat $CWD/warsow.png > $PKG/usr/share/pixmaps/warsow.png
|
||||||
mkdir -p $PKG/usr/share/applications
|
mkdir -p $PKG/usr/share/applications
|
||||||
|
@ -94,9 +103,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
# set up install/
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
# build package
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
PRGNAM="warsow"
|
PRGNAM="warsow"
|
||||||
VERSION="1.02"
|
VERSION="1.51"
|
||||||
HOMEPAGE="http://www.warsow.net/"
|
HOMEPAGE="http://www.warsow.net/"
|
||||||
DOWNLOAD="http://wsw.null.so/warsow_1.02.tar.gz \
|
DOWNLOAD="http://www.warsow.eu/warsow_1.51_unified.tar.gz"
|
||||||
http://www.zcdn.org/dl/1.02/warsow_1.02_sdk.tar.gz"
|
MD5SUM="482e2020b5463d8503f1f9fafe0c433d"
|
||||||
MD5SUM="1f0aa20bb441d6734de2f6ff19b8cb2b \
|
|
||||||
df3dee05dd6f84b44ba131a2445a1706"
|
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="OpenAL"
|
REQUIRES="OpenAL"
|
||||||
MAINTAINER="drhouse"
|
MAINTAINER="goarilla"
|
||||||
EMAIL="housegregory299@gmail.com"
|
EMAIL="goarilla@gmail.com"
|
||||||
|
|
Loading…
Reference in a new issue