aboutsummaryrefslogtreecommitdiff
path: root/games/bitfighter
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-04-10 11:49:16 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-10 11:49:16 +0700
commit43f99ca5f1f282c292fa796189c15294fb70cdeb (patch)
tree3e71aa599636cab5cbe8961e943204c26fba079c /games/bitfighter
parent57ab0c85a9a96d7f39ba9a680e50dd869afa2ec3 (diff)
games/bitfighter: Updated for version 019c.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/bitfighter')
-rw-r--r--games/bitfighter/README4
-rw-r--r--games/bitfighter/bitfighter.SlackBuild17
-rw-r--r--games/bitfighter/bitfighter.desktop4
-rw-r--r--games/bitfighter/bitfighter.info8
-rw-r--r--games/bitfighter/doinst.sh6
5 files changed, 17 insertions, 22 deletions
diff --git a/games/bitfighter/README b/games/bitfighter/README
index 30c1ec2ad3b7b..a2f1f7e35c98b 100644
--- a/games/bitfighter/README
+++ b/games/bitfighter/README
@@ -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
diff --git a/games/bitfighter/bitfighter.SlackBuild b/games/bitfighter/bitfighter.SlackBuild
index fff58eff2b3d7..e8ea7fc4344a1 100644
--- a/games/bitfighter/bitfighter.SlackBuild
+++ b/games/bitfighter/bitfighter.SlackBuild
@@ -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
diff --git a/games/bitfighter/bitfighter.desktop b/games/bitfighter/bitfighter.desktop
index e2145cefa8568..31c17aa99457f 100644
--- a/games/bitfighter/bitfighter.desktop
+++ b/games/bitfighter/bitfighter.desktop
@@ -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
diff --git a/games/bitfighter/bitfighter.info b/games/bitfighter/bitfighter.info
index e68e931b8345e..4a86635654c3d 100644
--- a/games/bitfighter/bitfighter.info
+++ b/games/bitfighter/bitfighter.info
@@ -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"
diff --git a/games/bitfighter/doinst.sh b/games/bitfighter/doinst.sh
index f6a957d203d55..5fb28930db0b9 100644
--- a/games/bitfighter/doinst.sh
+++ b/games/bitfighter/doinst.sh
@@ -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