games/starfighter: Added to 12.2 repository

This commit is contained in:
Tim Dickson (timsoft) 2010-05-12 23:29:32 +02:00 committed by Chess Griffin
parent 3df03c0ccd
commit f9521f290c
9 changed files with 126 additions and 0 deletions

14
games/starfighter/README Normal file
View 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

View 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

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

View 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

View 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

View 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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB