summaryrefslogtreecommitdiff
path: root/games/bitfighter/bitfighter.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/bitfighter/bitfighter.SlackBuild')
-rw-r--r--games/bitfighter/bitfighter.SlackBuild16
1 files changed, 5 insertions, 11 deletions
diff --git a/games/bitfighter/bitfighter.SlackBuild b/games/bitfighter/bitfighter.SlackBuild
index 7d22218910..bb4960bddb 100644
--- a/games/bitfighter/bitfighter.SlackBuild
+++ b/games/bitfighter/bitfighter.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for bitfighter
-# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2017 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bitfighter
-VERSION=${VERSION:-019e}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-019f}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -67,17 +67,13 @@ 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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-# Fix for gcc-5 thanks to Arch Linux
-patch -p1 < $CWD/gcc-5.X.patch
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DUSE_SDL2:BOOL=YES \
-DCMAKE_DATA_PATH=/usr/share/games \
-DCMAKE_BUILD_TYPE=Release ..
make
@@ -86,9 +82,7 @@ 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/resource/levels \
- $PKG/usr/bin
-cp -rf exe/*.ini $PKG/usr/share/games/$PRGNAM
+mkdir -p $PKG/usr/share/games/$PRGNAM $PKG/usr/bin
cp -r resource/* $PKG/usr/share/games/$PRGNAM
install -m0755 exe/$PRGNAM $PKG/usr/bin