diff options
Diffstat (limited to 'games/asteroidsinfinity')
-rw-r--r-- | games/asteroidsinfinity/README | 9 | ||||
-rw-r--r-- | games/asteroidsinfinity/asteroidsinfinity.SlackBuild | 60 | ||||
-rw-r--r-- | games/asteroidsinfinity/asteroidsinfinity.desktop | 8 | ||||
-rw-r--r-- | games/asteroidsinfinity/asteroidsinfinity.info | 10 | ||||
-rw-r--r-- | games/asteroidsinfinity/asteroidsinfinity.sh | 18 | ||||
-rw-r--r-- | games/asteroidsinfinity/doinst.sh | 3 | ||||
-rw-r--r-- | games/asteroidsinfinity/slack-desc | 19 |
7 files changed, 127 insertions, 0 deletions
diff --git a/games/asteroidsinfinity/README b/games/asteroidsinfinity/README new file mode 100644 index 0000000000..ff2d2eb9e6 --- /dev/null +++ b/games/asteroidsinfinity/README @@ -0,0 +1,9 @@ +asteroidsinfinity (clone of classic arcade game) + +Asteroids Infinity is based on and quite like the classic arcade game, +but has much more! Features: + +- Nifty elastic viewpoint (viewpoint is loosely attached to the ship) +- Upholds Newton's 1st law +- Highscores +- Configurable controls diff --git a/games/asteroidsinfinity/asteroidsinfinity.SlackBuild b/games/asteroidsinfinity/asteroidsinfinity.SlackBuild new file mode 100644 index 0000000000..8142e9eade --- /dev/null +++ b/games/asteroidsinfinity/asteroidsinfinity.SlackBuild @@ -0,0 +1,60 @@ +#!/bin/sh + +# Slackware build script for asteroidsinfinity + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=asteroidsinfinity +VERSION=${VERSION:-1.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +SRCNAM="AsteroidsInfinity" + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM +unzip $CWD/$SRCNAM$VERSION.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 {} \; + +mkdir -p \ + $PKG/usr/share/games/$PRGNAM \ + $PKG/usr/games \ + $PKG/usr/doc/$PRGNAM-$VERSION \ + $PKG/usr/share/applications \ + $PKG/usr/share/pixmaps + +cp -a $SRCNAM.py font/ sounds/ icon.png $PKG/usr/share/games/$PRGNAM +install -oroot -groot -m0755 $CWD/$PRGNAM.sh $PKG/usr/games/$PRGNAM +cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +ln -s ../games/$PRGNAM/icon.png $PKG/usr/share/pixmaps/$PRGNAM.png + +# .desktop written for this SlackBuild. +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +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/asteroidsinfinity/asteroidsinfinity.desktop b/games/asteroidsinfinity/asteroidsinfinity.desktop new file mode 100644 index 0000000000..16629861b8 --- /dev/null +++ b/games/asteroidsinfinity/asteroidsinfinity.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Asteroids Infinity +Comment=Arcade Game +Exec=asteroidsinfinity +Icon=asteroidsinfinity +Terminal=false +Type=Application +Categories=Game;ArcadeGame; diff --git a/games/asteroidsinfinity/asteroidsinfinity.info b/games/asteroidsinfinity/asteroidsinfinity.info new file mode 100644 index 0000000000..067c76b48f --- /dev/null +++ b/games/asteroidsinfinity/asteroidsinfinity.info @@ -0,0 +1,10 @@ +PRGNAM="asteroidsinfinity" +VERSION="1.2" +HOMEPAGE="https://sourceforge.net/projects/asteroidsinf/" +DOWNLOAD="https://downloads.sourceforge.net/project/asteroidsinf/asteroidsinfinity/Asteroids%20Infinity%201.2/AsteroidsInfinity1.2.zip" +MD5SUM="7e77dacd8ae9592eba32a441d2e5c673" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="pygame" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/games/asteroidsinfinity/asteroidsinfinity.sh b/games/asteroidsinfinity/asteroidsinfinity.sh new file mode 100644 index 0000000000..708db00c91 --- /dev/null +++ b/games/asteroidsinfinity/asteroidsinfinity.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# SBo wrapper script for asteroidsinfinity, by B. Watson. +# Licensed under the WTFPL. + +SHAREDIR=/usr/share/games/asteroidsinfinity +HOMEDIR=$HOME/.asteroidsinfinity + +set -e + +mkdir -p $HOMEDIR +cd $HOMEDIR +for src in $SHAREDIR/*; do + dst="$( basename $src )" + [ -e "$dst" ] || ln -s "$src" "$dst" +done + +exec python ./AsteroidsInfinity.py "$@" diff --git a/games/asteroidsinfinity/doinst.sh b/games/asteroidsinfinity/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/games/asteroidsinfinity/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/asteroidsinfinity/slack-desc b/games/asteroidsinfinity/slack-desc new file mode 100644 index 0000000000..b620d73942 --- /dev/null +++ b/games/asteroidsinfinity/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------------------------------------------------------| +asteroidsinfinity: asteroidsinfinity (clone of classic arcade game) +asteroidsinfinity: +asteroidsinfinity: Asteroids Infinity is based on and quite like the classic arcade game, +asteroidsinfinity: but has much more! Features: +asteroidsinfinity: +asteroidsinfinity: - Nifty elastic viewpoint (viewpoint is loosely attached to the ship) +asteroidsinfinity: - Upholds Newton's 1st law +asteroidsinfinity: - Highscores +asteroidsinfinity: - Configurable controls +asteroidsinfinity: +asteroidsinfinity: |