summaryrefslogtreecommitdiff
path: root/games/bitfighter/bitfighter.SlackBuild
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/bitfighter.SlackBuild
parent57ab0c85a9a96d7f39ba9a680e50dd869afa2ec3 (diff)
downloadslackbuilds-43f99ca5f1f282c292fa796189c15294fb70cdeb.tar.gz
games/bitfighter: Updated for version 019c.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/bitfighter/bitfighter.SlackBuild')
-rw-r--r--games/bitfighter/bitfighter.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/games/bitfighter/bitfighter.SlackBuild b/games/bitfighter/bitfighter.SlackBuild
index fff58eff2b..e8ea7fc434 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