mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
games/asteroidsinfinity: Added (clone of classic arcade game).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
e2856e5894
commit
99f2d5bf81
7 changed files with 127 additions and 0 deletions
9
games/asteroidsinfinity/README
Normal file
9
games/asteroidsinfinity/README
Normal file
|
@ -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
|
60
games/asteroidsinfinity/asteroidsinfinity.SlackBuild
Normal file
60
games/asteroidsinfinity/asteroidsinfinity.SlackBuild
Normal file
|
@ -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}
|
8
games/asteroidsinfinity/asteroidsinfinity.desktop
Normal file
8
games/asteroidsinfinity/asteroidsinfinity.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Asteroids Infinity
|
||||
Comment=Arcade Game
|
||||
Exec=asteroidsinfinity
|
||||
Icon=asteroidsinfinity
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;ArcadeGame;
|
10
games/asteroidsinfinity/asteroidsinfinity.info
Normal file
10
games/asteroidsinfinity/asteroidsinfinity.info
Normal file
|
@ -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"
|
18
games/asteroidsinfinity/asteroidsinfinity.sh
Normal file
18
games/asteroidsinfinity/asteroidsinfinity.sh
Normal file
|
@ -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 "$@"
|
3
games/asteroidsinfinity/doinst.sh
Normal file
3
games/asteroidsinfinity/doinst.sh
Normal 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
|
19
games/asteroidsinfinity/slack-desc
Normal file
19
games/asteroidsinfinity/slack-desc
Normal 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 ':' 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:
|
Loading…
Reference in a new issue