summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-04-29 06:41:32 -0500
committerErik Hanson <erik@slackbuilds.org>2014-04-29 06:44:53 -0500
commitcf0e5d91a09feb36cce30bc1f3ba812539a0e8fa (patch)
tree1884f84206d337117146181f66190364ab93ca6e /games
parentbeead0d52561bb5801754a3cd6c003da0cb73eb2 (diff)
downloadslackbuilds-cf0e5d91a09feb36cce30bc1f3ba812539a0e8fa.tar.gz
games/game_1945: Added (simple top-down shooter)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/game_1945/README6
-rw-r--r--games/game_1945/doinst.sh3
-rw-r--r--games/game_1945/game_1945.SlackBuild102
-rw-r--r--games/game_1945/game_1945.desktop10
-rw-r--r--games/game_1945/game_1945.info10
-rw-r--r--games/game_1945/game_1945.pngbin0 -> 6260 bytes
-rw-r--r--games/game_1945/game_1945.sh4
-rw-r--r--games/game_1945/slack-desc19
8 files changed, 154 insertions, 0 deletions
diff --git a/games/game_1945/README b/games/game_1945/README
new file mode 100644
index 0000000000..fcc9b683fe
--- /dev/null
+++ b/games/game_1945/README
@@ -0,0 +1,6 @@
+1945 is a simple top-down shooter that uses non-original
+graphics from SpriteLib GPL. The game is solidly programmed,
+but the gameplay fails in many ways. 1945 doesn't feature any
+level-based progress only an increase of difficulty. It was
+reported by most players that the game is too easy and virtually
+never becomes truly challenging.
diff --git a/games/game_1945/doinst.sh b/games/game_1945/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/games/game_1945/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/game_1945/game_1945.SlackBuild b/games/game_1945/game_1945.SlackBuild
new file mode 100644
index 0000000000..4eb76515b0
--- /dev/null
+++ b/games/game_1945/game_1945.SlackBuild
@@ -0,0 +1,102 @@
+#!/bin/sh
+
+# Slackware build script for game_1945
+
+# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=game_1945
+SRCNAM=1945
+VERSION=${VERSION:-0.55}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM
+unzip $CWD/$SRCNAM.zip
+cd $SRCNAM
+chown -R root:root .
+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 {} \;
+
+fbc gra_1945.bas # compile game
+
+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
+
+# install data game
+mkdir -p $PKG/usr/share/games/$SRCNAM $PKG/usr/bin
+cp *.dat *.bmp $PKG/usr/share/games/$SRCNAM
+cp *.wav *.mid $PKG/usr/share/games/$SRCNAM
+
+# install executable and launcher
+install -D -m0755 gra_1945 $PKG/usr/share/games/$SRCNAM/$PRGNAM
+install -D -m0755 $CWD/$PRGNAM.sh $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/share/applications
+install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/share/pixmaps/
+install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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.${PKGTYPE:-tgz}
diff --git a/games/game_1945/game_1945.desktop b/games/game_1945/game_1945.desktop
new file mode 100644
index 0000000000..acff679a23
--- /dev/null
+++ b/games/game_1945/game_1945.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name= 1945
+Name[he]= 1945
+Comment= 1945 is a simple top-down shooter
+Exec=game_1945
+Icon=game_1945
+Terminal=false
+Type=Application
+Categories=Game;Action;
+GenericName=Game
diff --git a/games/game_1945/game_1945.info b/games/game_1945/game_1945.info
new file mode 100644
index 0000000000..15d1a3bf39
--- /dev/null
+++ b/games/game_1945/game_1945.info
@@ -0,0 +1,10 @@
+PRGNAM="game_1945"
+VERSION="0.55"
+HOMEPAGE="http://games.freebasic.net/dumpbyid.php?input=69"
+DOWNLOAD="http://games.freebasic.net/startdownload.php?file=Numeral/1945.zip"
+MD5SUM="5416878f4642cbe18a8b0a23a93a42d8"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="FreeBASIC"
+MAINTAINER="Dimitris Zlatanidis"
+EMAIL="d.zlatanidis@gmail.com"
diff --git a/games/game_1945/game_1945.png b/games/game_1945/game_1945.png
new file mode 100644
index 0000000000..fe09e09a42
--- /dev/null
+++ b/games/game_1945/game_1945.png
Binary files differ
diff --git a/games/game_1945/game_1945.sh b/games/game_1945/game_1945.sh
new file mode 100644
index 0000000000..e4e1f0d6ac
--- /dev/null
+++ b/games/game_1945/game_1945.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd /usr/share/games/1945
+./game_1945
diff --git a/games/game_1945/slack-desc b/games/game_1945/slack-desc
new file mode 100644
index 0000000000..f057ef5eda
--- /dev/null
+++ b/games/game_1945/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+game_1945: game_1945 (simple top-down shooter)
+game_1945:
+game_1945: 1945 is a simple top-down shooter that uses non-original
+game_1945: graphics from SpriteLib GPL. The game is solidly programmed,
+game_1945: but the gameplay fails in many ways. 1945 doesn't feature any
+game_1945: level-based progress, only an increase of difficulty.It was
+game_1945: reported by most players that the game is too easy and virtually
+game_1945: never becomes truly challenging.
+game_1945:
+game_1945: Homepage: http://games.freebasic.net/dumpbyid.php?input=69
+game_1945: