mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
games/starfighter: Added to 12.2 repository
This commit is contained in:
parent
3df03c0ccd
commit
f9521f290c
9 changed files with 126 additions and 0 deletions
14
games/starfighter/README
Normal file
14
games/starfighter/README
Normal file
|
@ -0,0 +1,14 @@
|
|||
Project: Starfighter is an old school 2D shoot 'em up. In the game you take
|
||||
on the role of a rebel pilot called Chris, who is attempting to overthrow a
|
||||
military corporation called Weapco. Weapco has seized control of the known
|
||||
universe and currently rules it with an iron fist. Chris can no longer
|
||||
stand back and watch as millions of people suffer and die. He steals an
|
||||
experimental craft known as "Firefly" and begins his mission to fight his
|
||||
way to Sol, freeing key systems along the way. The game opens with Chris
|
||||
attempting to escape a Weapco patrol that has intercepted him.
|
||||
|
||||
This game depends on SDL, SDL_image, and SDL_mixer. All dependancies are
|
||||
included in the Slackware 12.2 SDL packages.
|
||||
|
||||
This game is produced by parallelrealities.co.uk. For the music, download
|
||||
http://www.parallelrealities.co.uk/download/starfighter/starfighter-1.0-1.music.zip
|
3
games/starfighter/doinst.sh
Normal file
3
games/starfighter/doinst.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
19
games/starfighter/slack-desc
Normal file
19
games/starfighter/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
starfighter: Starfighter (an old school 2D shoot 'em up)
|
||||
starfighter:
|
||||
starfighter: In starfighter, you take on the role of a rebel pilot named Chris,
|
||||
starfighter: who is attempting to overthrow a military corporation called Weapco.
|
||||
starfighter: Weapco has seized control of the known universe and rules it with
|
||||
starfighter: an iron fist. Chris can no longer stand back and watch as millions
|
||||
starfighter: of people suffer and die. He steals an experimental craft known as
|
||||
starfighter: "Firefly" and begins his mission to fight his way to Sol, freeing
|
||||
starfighter: key systems along the way.
|
||||
starfighter:
|
||||
starfighter: Homepage: http://www.parallelrealities.co.uk
|
BIN
games/starfighter/starfighter-large.png
Normal file
BIN
games/starfighter/starfighter-large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
BIN
games/starfighter/starfighter-small.png
Normal file
BIN
games/starfighter/starfighter-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 548 B |
73
games/starfighter/starfighter.SlackBuild
Normal file
73
games/starfighter/starfighter.SlackBuild
Normal file
|
@ -0,0 +1,73 @@
|
|||
#!/bin/sh
|
||||
# Slackware build script for starfighter
|
||||
|
||||
# Written by Tim Dickson tim@tree-of-life.co.uk
|
||||
|
||||
PRGNAM=starfighter
|
||||
VERSION=${VERSION:-1.1}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-1.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
#because the make file doesn't support DESTDIR directly..
|
||||
#modify makefile
|
||||
mv makefile oldmakefile
|
||||
sed -e 's/\/usr/\$\(DESTDIR\)\/usr/g' -e '/strip/ i\
|
||||
\tmkdir -p \$\(BINDIR\)' -e '/strip/ i\
|
||||
\tmkdir -p \$\(DOCDIR\)' oldmakefile >makefile
|
||||
rm oldmakefile
|
||||
|
||||
make
|
||||
#binaries are stripped in this makefile with install option
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a docs $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
#put the menu item and icons in right place
|
||||
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps
|
||||
cp $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png
|
||||
mkdir -p $PKG/usr/share/icons/hicolor/16x16/apps
|
||||
cp $CWD/$PRGNAM-small.png $PKG/usr/share/icons/hicolor/16x16/apps/$PRGNAM.png
|
||||
mkdir -p $PKG/usr/share/icons/hicolor/64x64/apps
|
||||
cp $CWD/$PRGNAM-large.png $PKG/usr/share/icons/hicolor/64x64/apps/$PRGNAM.png
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
9
games/starfighter/starfighter.desktop
Normal file
9
games/starfighter/starfighter.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Categories=Application;Game;
|
||||
X-Desktop-File-Install-Version=1.0
|
||||
Name=Starfighter
|
||||
Icon=starfighter
|
||||
Exec=starfighter
|
||||
Terminal=false
|
||||
Type=Application
|
8
games/starfighter/starfighter.info
Normal file
8
games/starfighter/starfighter.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="starfighter"
|
||||
VERSION="1.1"
|
||||
HOMEPAGE="http://www.parallelrealities.co.uk/projects/starfighter.php"
|
||||
DOWNLOAD="http://www.parallelrealities.co.uk/download/starfighter/starfighter-1.1-1.tar.gz"
|
||||
MD5SUM="6a4b704dbc83c7403842b936f95ee958"
|
||||
MAINTAINER="Tim Dickson (timsoft)"
|
||||
EMAIL="tim@tree-of-life.co.uk"
|
||||
APPROVED="chess"
|
BIN
games/starfighter/starfighter.png
Normal file
BIN
games/starfighter/starfighter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in a new issue