mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
games/bitfighter: Updated for version 019c.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
57ab0c85a9
commit
43f99ca5f1
5 changed files with 17 additions and 22 deletions
|
@ -4,7 +4,3 @@ modes and unique maps. Players can (and do) create
|
||||||
maps by using the built-in map editor. Space
|
maps by using the built-in map editor. Space
|
||||||
exploration for warfare, construction, and beyond!
|
exploration for warfare, construction, and beyond!
|
||||||
It's fast, fun, and frenetic.
|
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
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=bitfighter
|
PRGNAM=bitfighter
|
||||||
VERSION=${VERSION:-019b}
|
VERSION=${VERSION:-019c}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@ cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
|
unzip $CWD/classic_level_pack.zip
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
@ -74,6 +75,8 @@ cd build
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
|
-DUSE_SDL2:BOOL=YES \
|
||||||
|
-DLINUX_DATA_DIR=/usr/share/games \
|
||||||
-DCMAKE_BUILD_TYPE=Release ..
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -81,12 +84,12 @@ cd ..
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/games/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/share/games/$PRGNAM/resource/levels \
|
||||||
cp -rf exe $PKG/usr/share/games/$PRGNAM-$VERSION
|
$PKG/usr/bin
|
||||||
cp -rf resource/* $PKG/usr/share/games/$PRGNAM-$VERSION/exe
|
cp -rf exe/*.ini $PKG/usr/share/games/$PRGNAM
|
||||||
mkdir -p $PKG/usr/share/$PRGNAM/sfx
|
cp -r resource/* $PKG/usr/share/games/$PRGNAM
|
||||||
cp -rf resource/sfx/* $PKG/usr/share/$PRGNAM/sfx
|
cp -a classic_level_pack/* $PKG/usr/share/games/$PRGNAM/resource/levels
|
||||||
rm -rf exe
|
install -m0755 exe/$PRGNAM $PKG/usr/bin
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/applications
|
mkdir -p $PKG/usr/share/applications
|
||||||
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
|
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Bitfighter
|
Name= Bitfighter
|
||||||
Name[he]= Bitfighter
|
Name[he]= Bitfighter
|
||||||
Comment=Action
|
Comment=Action
|
||||||
Exec=/usr/share/games/bitfighter-019b/exe/./bitfighter
|
Exec=bitfighter
|
||||||
Icon=bitfighter
|
Icon=bitfighter
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
PRGNAM="bitfighter"
|
PRGNAM="bitfighter"
|
||||||
VERSION="019b"
|
VERSION="019b"
|
||||||
HOMEPAGE="http://bitfighter.org/"
|
HOMEPAGE="http://bitfighter.org/"
|
||||||
DOWNLOAD="http://bitfighter.org/files/bitfighter-019b.tar.gz"
|
DOWNLOAD="http://bitfighter.org/files/bitfighter-019c.tar.gz \
|
||||||
MD5SUM="f8f8900a8ae0b84d2b3849f9c7b0dc6d"
|
https://bitfighter.googlecode.com/files/classic_level_pack.zip"
|
||||||
|
MD5SUM="0951f6b57378cb6a4a81811336050b99 \
|
||||||
|
cb32039b47026e176d3f1f3639bd1a9f"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="OpenAL speex libmodplug"
|
REQUIRES="OpenAL SDL2 speex libmodplug"
|
||||||
MAINTAINER="Dimitris Zlatanidis"
|
MAINTAINER="Dimitris Zlatanidis"
|
||||||
EMAIL="d.zlatanidis@gmail.com"
|
EMAIL="d.zlatanidis@gmail.com"
|
||||||
|
|
|
@ -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
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue