aboutsummaryrefslogtreecommitdiff
path: root/games/bitfighter/bitfighter.SlackBuild
diff options
context:
space:
mode:
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 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