aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/space-invaders/README36
-rw-r--r--games/space-invaders/doinst.sh13
-rw-r--r--games/space-invaders/douninst.sh9
-rw-r--r--games/space-invaders/slack-desc19
-rw-r--r--games/space-invaders/space-invaders39
-rw-r--r--games/space-invaders/space-invaders.SlackBuild87
-rw-r--r--games/space-invaders/space-invaders.desktop8
-rw-r--r--games/space-invaders/space-invaders.info10
-rw-r--r--games/space-invaders/space-invaders.pngbin0 -> 7325 bytes
9 files changed, 221 insertions, 0 deletions
diff --git a/games/space-invaders/README b/games/space-invaders/README
new file mode 100644
index 0000000000..4f4f78cdc0
--- /dev/null
+++ b/games/space-invaders/README
@@ -0,0 +1,36 @@
+This game is a tribute to Space Invaders, the famous arcade game
+created by Tomohiro Nishikado in 1978.
+
+** Gameplay **
+
+Space Invaders is a fixed shooter in which the player controls
+a laser cannon by moving it horizontally across the bottom of the
+screen and firing at descending aliens. The aim is to defeat five
+rows of eleven aliens that move horizontally back and forth across
+the screen as they advance toward the bottom of the screen.
+The player's laser cannon is partially protected by several
+stationary defense bunkers that are gradually destroyed
+from the top and bottom by blasts from either the aliens or the
+cannon.
+
+The player defeats an alien and earns points by shooting it with
+the laser cannon. As more aliens are defeated, the aliens' movement
+and the game's music both speed up. Defeating all the aliens
+on-screen brings another wave that is more difficult, a loop which
+can continue endlessly.
+
+A special "mystery ship" will occasionally move across the top of
+the screen and awards bonus points if destroyed.
+
+The aliens attempt to destroy the player's cannon by firing at it
+while they approach the bottom of the screen. If they reach the
+bottom, the alien invasion is declared successful and the game
+ends tragically (optionally you can choose to start the current
+stage over); otherwise, it ends generally if the player's last
+cannon is destroyed by the enemy's projectiles.
+
+** Game License **
+
+This game is developed by LC-Games, authored by Luca Carminati.
+Redistribution has been granted to Antonio Leal as stated in
+/usr/doc/space-invaders-(version)/redistribution_permission.pdf
diff --git a/games/space-invaders/doinst.sh b/games/space-invaders/doinst.sh
new file mode 100644
index 0000000000..aea0f894eb
--- /dev/null
+++ b/games/space-invaders/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+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 -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/games/space-invaders/douninst.sh b/games/space-invaders/douninst.sh
new file mode 100644
index 0000000000..76960dcd62
--- /dev/null
+++ b/games/space-invaders/douninst.sh
@@ -0,0 +1,9 @@
+# We remove the binaries, but leave the TopScore and the game fptions in each user
+for user in $(ls -1 /home)
+do
+ rm -rf /home/$user/.local/bin/space-invaders/Content
+ rm -rf /home/$user/.local/bin/space-invaders/SpaceInvaders
+ rm -rf /home/$user/.local/bin/space-invaders/SpaceInvaders.pdb
+ rm -rf /home/$user/.local/bin/space-invaders/libSDL2-2.0.so.0
+ rm -rf /home/$user/.local/bin/space-invaders/libopenal.so.1
+done
diff --git a/games/space-invaders/slack-desc b/games/space-invaders/slack-desc
new file mode 100644
index 0000000000..8f2b33c4f7
--- /dev/null
+++ b/games/space-invaders/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------------------------------------------------------|
+space-invaders: space-invaders (arcade game)
+space-invaders:
+space-invaders: This game is a tribute to Space Invaders, the famous arcade game
+space-invaders: created by Tomohiro Nishikado in 1978.
+space-invaders: Space Invaders is a fixed shooter in which the player controls a
+space-invaders: laser cannon by moving it horizontally across the bottom of the
+space-invaders: screen and firing at descending aliens.
+space-invaders:
+space-invaders: Permission is granted to redistribute this game. See README.
+space-invaders: Please donate at https://lowcarb.itch.io/space-invaders
+space-invaders:
diff --git a/games/space-invaders/space-invaders b/games/space-invaders/space-invaders
new file mode 100644
index 0000000000..792f44d599
--- /dev/null
+++ b/games/space-invaders/space-invaders
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# Slackware launcher for space-invaders
+
+# Copyright 2025 Antonio Leal, Porto Salvo, Oeiras, Portugal
+# 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=space-invaders
+TARGET=~/.local/bin
+
+if [ ! -f "$TARGET/$PRGNAM/SpaceInvaders" ]; then
+ cd $TARGET
+ mkdir -p $PRGNAM
+ unzip /usr/src/space-invaders/SpaceInvaders_linux-x64.zip
+ mv SpaceInvaders_linux-x64/* $TARGET/$PRGNAM/
+ rm -rf SpaceInvaders_linux-x64
+ cd $PRGNAM
+ chmod +x SpaceInvaders
+else
+ cd $TARGET/$PRGNAM
+fi
+./SpaceInvaders
diff --git a/games/space-invaders/space-invaders.SlackBuild b/games/space-invaders/space-invaders.SlackBuild
new file mode 100644
index 0000000000..bc1acc8d38
--- /dev/null
+++ b/games/space-invaders/space-invaders.SlackBuild
@@ -0,0 +1,87 @@
+#!/bin/bash
+
+# Slackware build script for space-invaders
+
+# Copyright 2025 Antonio Leal, Porto Salvo, Oeiras, Portugal
+# 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.
+
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=space-invaders
+VERSION=${VERSION:-1.4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+TARBALL=SpaceInvaders_linux-x64
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if ! [ "$ARCH" = "x86_64" ]; then
+ echo "Only x86_64 is supported."
+ exit 1
+fi
+
+set -e
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION space-invaders-redistribution
+tar xvf $CWD/*.tar.gz
+mv space-invaders-redistribution $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+
+mkdir -p $PKG/usr/src/space-invaders
+install -Dvm644 $TARBALL.zip $PKG/usr/src/space-invaders/$TARBALL.zip
+
+mkdir -p $PKG/usr/bin
+install -Dvm755 $CWD/space-invaders $PKG/usr/bin/space-invaders
+
+mkdir -p $PKG/usr/share/pixmaps
+cp $CWD/space-invaders.png $PKG/usr/share/pixmaps/
+mkdir -p $PKG/usr/share/applications
+cp $CWD/space-invaders.desktop $PKG/usr/share/applications/
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp redistribution_permission.pdf $PKG/usr/doc/$PRGNAM-$VERSION
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/douninst.sh > $PKG/install/douninst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/games/space-invaders/space-invaders.desktop b/games/space-invaders/space-invaders.desktop
new file mode 100644
index 0000000000..c7dbef4bd1
--- /dev/null
+++ b/games/space-invaders/space-invaders.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Space Invaders
+Comment=A tribute to the original arcade from 1978
+Exec=space-invaders
+Icon=space-invaders
+Terminal=false
+Type=Application
+Categories=Game;
diff --git a/games/space-invaders/space-invaders.info b/games/space-invaders/space-invaders.info
new file mode 100644
index 0000000000..7ae010d467
--- /dev/null
+++ b/games/space-invaders/space-invaders.info
@@ -0,0 +1,10 @@
+PRGNAM="space-invaders"
+VERSION="1.4"
+HOMEPAGE="https://lowcarb.itch.io/space-invaders"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://codeberg.org/antonioleal/space-invaders-redistribution/archive/v1.4.tar.gz"
+MD5SUM_x86_64="963030fb6d8e593dac9050652c8faa20"
+REQUIRES=""
+MAINTAINER="Antonio Leal"
+EMAIL="antonioleal@yahoo.com"
diff --git a/games/space-invaders/space-invaders.png b/games/space-invaders/space-invaders.png
new file mode 100644
index 0000000000..e6e4b8b674
--- /dev/null
+++ b/games/space-invaders/space-invaders.png
Binary files differ