games/bitfighter: Updated for version 019c.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2014-04-10 11:49:16 +07:00 committed by Willy Sudiarto Raharjo
parent 57ab0c85a9
commit 43f99ca5f1
5 changed files with 17 additions and 22 deletions

View file

@ -4,7 +4,3 @@ modes and unique maps. Players can (and do) create
maps by using the built-in map editor. Space
exploration for warfare, construction, and beyond!
It's fast, fun, and frenetic.
Note : mkdir .bitfighter (in your /home/user/)
cp -rf /usr/share/games/bitfighter-019b/exe/music ~/.bitfighter
cp -rf /usr/share/games/bitfighter-019b/exe/scripts ~/.bitfighter

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bitfighter
VERSION=${VERSION:-019b}
VERSION=${VERSION:-019c}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -62,6 +62,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
unzip $CWD/classic_level_pack.zip
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -74,6 +75,8 @@ cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DUSE_SDL2:BOOL=YES \
-DLINUX_DATA_DIR=/usr/share/games \
-DCMAKE_BUILD_TYPE=Release ..
make
cd ..
@ -81,12 +84,12 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/games/$PRGNAM-$VERSION
cp -rf exe $PKG/usr/share/games/$PRGNAM-$VERSION
cp -rf resource/* $PKG/usr/share/games/$PRGNAM-$VERSION/exe
mkdir -p $PKG/usr/share/$PRGNAM/sfx
cp -rf resource/sfx/* $PKG/usr/share/$PRGNAM/sfx
rm -rf exe
mkdir -p $PKG/usr/share/games/$PRGNAM/resource/levels \
$PKG/usr/bin
cp -rf exe/*.ini $PKG/usr/share/games/$PRGNAM
cp -r resource/* $PKG/usr/share/games/$PRGNAM
cp -a classic_level_pack/* $PKG/usr/share/games/$PRGNAM/resource/levels
install -m0755 exe/$PRGNAM $PKG/usr/bin
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop

View file

@ -1,8 +1,8 @@
[Desktop Entry]
Name=Bitfighter
Name= Bitfighter
Name[he]= Bitfighter
Comment=Action
Exec=/usr/share/games/bitfighter-019b/exe/./bitfighter
Exec=bitfighter
Icon=bitfighter
Terminal=false
Type=Application

View file

@ -1,10 +1,12 @@
PRGNAM="bitfighter"
VERSION="019b"
HOMEPAGE="http://bitfighter.org/"
DOWNLOAD="http://bitfighter.org/files/bitfighter-019b.tar.gz"
MD5SUM="f8f8900a8ae0b84d2b3849f9c7b0dc6d"
DOWNLOAD="http://bitfighter.org/files/bitfighter-019c.tar.gz \
https://bitfighter.googlecode.com/files/classic_level_pack.zip"
MD5SUM="0951f6b57378cb6a4a81811336050b99 \
cb32039b47026e176d3f1f3639bd1a9f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="OpenAL speex libmodplug"
REQUIRES="OpenAL SDL2 speex libmodplug"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"

View file

@ -1,9 +1,3 @@
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi