From c405e0b564e211c61f156c1f795263caf61dff34 Mon Sep 17 00:00:00 2001 From: MLanden Date: Sun, 26 Jun 2011 00:40:29 -0300 Subject: games/zaz: Added (puzzle game) --- games/zaz/README | 9 +++++ games/zaz/doinst.sh | 3 ++ games/zaz/slack-desc | 20 +++++++++++ games/zaz/zaz.SlackBuild | 93 ++++++++++++++++++++++++++++++++++++++++++++++++ games/zaz/zaz.info | 10 ++++++ 5 files changed, 135 insertions(+) create mode 100644 games/zaz/README create mode 100644 games/zaz/doinst.sh create mode 100644 games/zaz/slack-desc create mode 100644 games/zaz/zaz.SlackBuild create mode 100644 games/zaz/zaz.info (limited to 'games') diff --git a/games/zaz/README b/games/zaz/README new file mode 100644 index 0000000000..dac8e01d4b --- /dev/null +++ b/games/zaz/README @@ -0,0 +1,9 @@ +Zaz is a game where the player has to get rid of incoming balls by +arranging them in triplets. The idea of the game is loosely based on games +like Luxor, Zuma and Puzzle Bobble. The twists that make Zaz stand out +from other games of this type are that the balls have to be picked from +the path (insted of being randomly assigned for the player) and that the +player's "vehicle" is also attached to a path which is different from +level to level. + +This requires ftgl. diff --git a/games/zaz/doinst.sh b/games/zaz/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/games/zaz/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/zaz/slack-desc b/games/zaz/slack-desc new file mode 100644 index 0000000000..51162e03ea --- /dev/null +++ b/games/zaz/slack-desc @@ -0,0 +1,20 @@ +# 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------------------------------------------------------| +zaz: zaz (puzzle game) +zaz: +zaz: Zaz ain't Z*** is a puzzle game where the player has to get rid of +zaz: incoming balls by arranging them in triplets Because hackers too need +zaz: to play with balls +zaz: +zaz: Homepage: http://zaz.sourceforge.net +zaz: +zaz: +zaz: +zaz: + diff --git a/games/zaz/zaz.SlackBuild b/games/zaz/zaz.SlackBuild new file mode 100644 index 0000000000..2528002998 --- /dev/null +++ b/games/zaz/zaz.SlackBuild @@ -0,0 +1,93 @@ +#!/bin/sh + +# Slackware build script for zaz +# +# Copyright 2011 MLanden +# 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=zaz +VERSION=1.0.0 +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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R a-s,u+rw,go+r-w . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ + $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/zaz/zaz.info b/games/zaz/zaz.info new file mode 100644 index 0000000000..b6810acd60 --- /dev/null +++ b/games/zaz/zaz.info @@ -0,0 +1,10 @@ +PRGNAM="zaz" +VERSION="1.0.0" +HOMEPAGE="http://zaz.sourceforge.net" +DOWNLOAD="http://downloads.sourceforge.net/zaz/zaz-1.0.0.tar.bz2" +DOWNLOAD_x86_64="" +MD5SUM="d92a043780d06c699da0ba04aab32a6b" +MD5SUM_x86_64="" +MAINTAINER="MLanden" +EMAIL="mlanden2009@gmail.com" +APPROVED="Niels Horn" -- cgit v1.2.3