aboutsummaryrefslogtreecommitdiff
path: root/games/starfighter
diff options
context:
space:
mode:
Diffstat (limited to 'games/starfighter')
-rw-r--r--games/starfighter/README14
-rw-r--r--games/starfighter/doinst.sh3
-rw-r--r--games/starfighter/slack-desc19
-rw-r--r--games/starfighter/starfighter-large.pngbin0 -> 4371 bytes
-rw-r--r--games/starfighter/starfighter-small.pngbin0 -> 548 bytes
-rw-r--r--games/starfighter/starfighter.SlackBuild73
-rw-r--r--games/starfighter/starfighter.desktop9
-rw-r--r--games/starfighter/starfighter.info8
-rw-r--r--games/starfighter/starfighter.pngbin0 -> 1563 bytes
9 files changed, 126 insertions, 0 deletions
diff --git a/games/starfighter/README b/games/starfighter/README
new file mode 100644
index 0000000000000..1ba933a32b6e2
--- /dev/null
+++ b/games/starfighter/README
@@ -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
diff --git a/games/starfighter/doinst.sh b/games/starfighter/doinst.sh
new file mode 100644
index 0000000000000..5fb28930db0b9
--- /dev/null
+++ b/games/starfighter/doinst.sh
@@ -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
diff --git a/games/starfighter/slack-desc b/games/starfighter/slack-desc
new file mode 100644
index 0000000000000..7004ab23b9e30
--- /dev/null
+++ b/games/starfighter/slack-desc
@@ -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
diff --git a/games/starfighter/starfighter-large.png b/games/starfighter/starfighter-large.png
new file mode 100644
index 0000000000000..0bc9ed662a0ab
--- /dev/null
+++ b/games/starfighter/starfighter-large.png
Binary files differ
diff --git a/games/starfighter/starfighter-small.png b/games/starfighter/starfighter-small.png
new file mode 100644
index 0000000000000..b9c3f7ff78a00
--- /dev/null
+++ b/games/starfighter/starfighter-small.png
Binary files differ
diff --git a/games/starfighter/starfighter.SlackBuild b/games/starfighter/starfighter.SlackBuild
new file mode 100644
index 0000000000000..e36a9fc9c1134
--- /dev/null
+++ b/games/starfighter/starfighter.SlackBuild
@@ -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
diff --git a/games/starfighter/starfighter.desktop b/games/starfighter/starfighter.desktop
new file mode 100644
index 0000000000000..8597cb94d5fc0
--- /dev/null
+++ b/games/starfighter/starfighter.desktop
@@ -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
diff --git a/games/starfighter/starfighter.info b/games/starfighter/starfighter.info
new file mode 100644
index 0000000000000..86650a62867b1
--- /dev/null
+++ b/games/starfighter/starfighter.info
@@ -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"
diff --git a/games/starfighter/starfighter.png b/games/starfighter/starfighter.png
new file mode 100644
index 0000000000000..792e26e9d7852
--- /dev/null
+++ b/games/starfighter/starfighter.png
Binary files differ