diff options
Diffstat (limited to 'games/nFlood')
-rw-r--r-- | games/nFlood/Makefile.patch | 31 | ||||
-rw-r--r-- | games/nFlood/README | 5 | ||||
-rw-r--r-- | games/nFlood/doinst.sh | 3 | ||||
-rw-r--r-- | games/nFlood/nFlood.SlackBuild | 90 | ||||
-rw-r--r-- | games/nFlood/nFlood.info | 10 | ||||
-rw-r--r-- | games/nFlood/slack-desc | 19 |
6 files changed, 158 insertions, 0 deletions
diff --git a/games/nFlood/Makefile.patch b/games/nFlood/Makefile.patch new file mode 100644 index 0000000000..4a87c25d83 --- /dev/null +++ b/games/nFlood/Makefile.patch @@ -0,0 +1,31 @@ +--- nFlood-0.5.0/Makefile.original 2014-04-26 06:36:09.348650457 +0300 ++++ nFlood-0.5.0/Makefile 2014-04-26 06:54:41.880741892 +0300 +@@ -46,11 +46,11 @@ + + EXEC_PREFIX = $(PREFIX) + DATAROOTDIR = $(PREFIX)/share +-MANROOT = $(DATAROOTDIR)/man ++MANROOT = $(PREFIX)/man + + MANNUMBER = 6 + +-BINDIR = $(EXEC_PREFIX)/games ++BINDIR = $(EXEC_PREFIX)/bin + MANDIR = $(MANROOT)/man$(MANNUMBER) + + MANFILE = $(PACKAGE).$(MANNUMBER) +@@ -104,10 +104,10 @@ + # Installing... + $(MUTE)install -d -m 755 $(BINDIR) + $(MUTE)install -m 755 bin/$(EXE) $(BINDIR) +- -$(MUTE)cat $(MANPAGE) | sed -e "s|DATE|$(DATE)|g" -e "s|VERSION|$(VERSION)|g" >$(MANFILE) +- $(MUTE)install -d $(MANDIR) +- $(MUTE)install $(MANFILE) $(MANDIR) +- $(MUTE)rm -f $(MANFILE) ++ # -$(MUTE)cat $(MANPAGE) | sed -e "s|DATE|$(DATE)|g" -e "s|VERSION|$(VERSION)|g" >$(MANFILE) ++ # $(MUTE)install -d $(MANDIR) ++ # $(MUTE)install $(MANFILE) $(MANDIR) ++ # $(MUTE)rm -f $(MANFILE) + # $(PACKAGE) successfuly installed! + + uninstall: diff --git a/games/nFlood/README b/games/nFlood/README new file mode 100644 index 0000000000..a65da84fce --- /dev/null +++ b/games/nFlood/README @@ -0,0 +1,5 @@ +nFlood is a simple clone of the Flood-It puzzle game. +You need to fill the whole board with a single color. To do that, +alternate between them, flooding with the minimum number of moves +possible. It's played on the terminal, with text-based interface +via nCurses. diff --git a/games/nFlood/doinst.sh b/games/nFlood/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/games/nFlood/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/nFlood/nFlood.SlackBuild b/games/nFlood/nFlood.SlackBuild new file mode 100644 index 0000000000..ebd80133bf --- /dev/null +++ b/games/nFlood/nFlood.SlackBuild @@ -0,0 +1,90 @@ +#!/bin/sh + +# Slackware build script for nFlood + +# 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=nFlood +VERSION=${VERSION:-0.5.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.gz || tar xvf $CWD/v$VERSION.tar.gz +cd $PRGNAM-$VERSION +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 {} \; + +# install game in correct place and remove empty manpage +patch -p1 < $CWD/Makefile.patch + +make +make install PREFIX=$PKG/usr + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README.md TODO $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/nFlood/nFlood.info b/games/nFlood/nFlood.info new file mode 100644 index 0000000000..355efe91c3 --- /dev/null +++ b/games/nFlood/nFlood.info @@ -0,0 +1,10 @@ +PRGNAM="nFlood" +VERSION="0.5.0" +HOMEPAGE="http://nflood.alexdantas.net" +DOWNLOAD="https://github.com/alexdantas/nFlood/archive/v0.5.0.tar.gz" +MD5SUM="8846c12c2f6a132f42bfd543f67d5eef" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Dimitris Zlatanidis" +EMAIL="d.zlatanidis@gmail.com" diff --git a/games/nFlood/slack-desc b/games/nFlood/slack-desc new file mode 100644 index 0000000000..b2e001e429 --- /dev/null +++ b/games/nFlood/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------------------------------------------------------| +nFlood: nFlood (Flood-It puzzle game) +nFlood: +nFlood: nFlood is a simple clone of the Flood-It puzzle game. +nFlood: You need to fill the whole board with a single color. To do that, +nFlood: alternate between them, flooding with the minimum number of moves +nFlood: possible. It's played on the terminal, with text-based interface +nFlood: via nCurses. +nFlood: +nFlood: Homepage: http://nflood.alexdantas.net +nFlood: +nFlood: |