summaryrefslogtreecommitdiff
path: root/games/rocksndiamonds
diff options
context:
space:
mode:
authorAndrew Tkalia <anddt@yandex.ru>2013-06-16 12:47:40 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2013-06-16 12:47:40 -0300
commit26fa7b0b195004785eb1b1e96f6912db44911c6d (patch)
tree650219230edb14a00f9c265e39586d81bdc623dd /games/rocksndiamonds
parent36281c3d7b69867e467107df6f0e021610f08237 (diff)
downloadslackbuilds-26fa7b0b195004785eb1b1e96f6912db44911c6d.tar.gz
games/rocksndiamonds: Added (boulder dash-like arcade games)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/rocksndiamonds')
-rw-r--r--games/rocksndiamonds/README7
-rw-r--r--games/rocksndiamonds/doinst.sh9
-rw-r--r--games/rocksndiamonds/rocksndiamonds-16.pngbin0 -> 879 bytes
-rw-r--r--games/rocksndiamonds/rocksndiamonds-32.pngbin0 -> 514 bytes
-rw-r--r--games/rocksndiamonds/rocksndiamonds.SlackBuild102
-rw-r--r--games/rocksndiamonds/rocksndiamonds.desktop7
-rw-r--r--games/rocksndiamonds/rocksndiamonds.info10
-rw-r--r--games/rocksndiamonds/slack-desc19
8 files changed, 154 insertions, 0 deletions
diff --git a/games/rocksndiamonds/README b/games/rocksndiamonds/README
new file mode 100644
index 0000000000..cb5f8b9832
--- /dev/null
+++ b/games/rocksndiamonds/README
@@ -0,0 +1,7 @@
+rocksndiamonds is an arcade style game for Linux in the tradition of:
+
+ + "Boulder Dash" (C 64)
+ + "Emerald Mine" (Amiga)
+ + "Supaplex" (Amiga/PC)
+ + "Sokoban" (PC)
+
diff --git a/games/rocksndiamonds/doinst.sh b/games/rocksndiamonds/doinst.sh
new file mode 100644
index 0000000000..3e5691a052
--- /dev/null
+++ b/games/rocksndiamonds/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/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 usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/games/rocksndiamonds/rocksndiamonds-16.png b/games/rocksndiamonds/rocksndiamonds-16.png
new file mode 100644
index 0000000000..113c4ae6ff
--- /dev/null
+++ b/games/rocksndiamonds/rocksndiamonds-16.png
Binary files differ
diff --git a/games/rocksndiamonds/rocksndiamonds-32.png b/games/rocksndiamonds/rocksndiamonds-32.png
new file mode 100644
index 0000000000..afc98d23f9
--- /dev/null
+++ b/games/rocksndiamonds/rocksndiamonds-32.png
Binary files differ
diff --git a/games/rocksndiamonds/rocksndiamonds.SlackBuild b/games/rocksndiamonds/rocksndiamonds.SlackBuild
new file mode 100644
index 0000000000..657dd8c436
--- /dev/null
+++ b/games/rocksndiamonds/rocksndiamonds.SlackBuild
@@ -0,0 +1,102 @@
+#!/bin/sh
+
+# Slackware build script for rocksndiamonds
+
+# Copyright 2013, Andrew Tkalia <anddt@yandex.ru>, Ukraine, Kyiv
+# 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=rocksndiamonds
+VERSION=${VERSION:-3.3.0.1}
+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="-march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+make clean
+make \
+ EXTRA_CFLAGS="$SLKCFLAGS" \
+ RO_GAME_DIR=/usr/games \
+ RO_GAME_DIR=/usr/share/games/rocksndiamonds \
+ RW_GAME_DIR=/var/games/rocksndiamonds \
+ SCORE_ENTRIES=ONE_PER_NAME
+
+mkdir -p $PKG/usr/games $PKG/usr/share/games/rocksndiamonds $PKG/var/games/rocksndiamonds \
+ $PKG/usr/share/applications $PKG/usr/share/icons/hicolor/16x16/apps \
+ $PKG/usr/share/icons/hicolor/32x32/apps $PKG/usr/man/man1
+install -m 755 rocksndiamonds $PKG/usr/games
+cp -a graphics levels music sounds $PKG/usr/share/games/rocksndiamonds
+chown -R root.games $PKG/var/games/rocksndiamonds
+chmod 0775 $PKG/var/games/rocksndiamonds
+cp $CWD/rocksndiamonds.desktop $PKG/usr/share/applications
+cp $CWD/rocksndiamonds-16.png $PKG/usr/share/icons/hicolor/16x16/apps/rocksndiamonds.png
+cp $CWD/rocksndiamonds-32.png $PKG/usr/share/icons/hicolor/32x32/apps/rocksndiamonds.png
+cat rocksndiamonds.1 |gzip -9 > $PKG/usr/man/man1/rocksndiamonds.1.gz
+
+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 \
+ docs ChangeLog COPYING CREDITS INSTALL 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/rocksndiamonds/rocksndiamonds.desktop b/games/rocksndiamonds/rocksndiamonds.desktop
new file mode 100644
index 0000000000..30d67ba606
--- /dev/null
+++ b/games/rocksndiamonds/rocksndiamonds.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Categories=Application;Game;ArcadeGame
+Exec=rocksndiamonds
+Icon=rocksndiamonds
+Name=Rocks'n'Diamonds
+StartupNotify=false
+Type=Application
diff --git a/games/rocksndiamonds/rocksndiamonds.info b/games/rocksndiamonds/rocksndiamonds.info
new file mode 100644
index 0000000000..8520381cff
--- /dev/null
+++ b/games/rocksndiamonds/rocksndiamonds.info
@@ -0,0 +1,10 @@
+PRGNAM="rocksndiamonds"
+VERSION="3.3.0.1"
+HOMEPAGE="http://www.artsoft.org/rocksndiamonds/"
+DOWNLOAD="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-3.3.0.1.tar.gz"
+MD5SUM="813ced99d54f89db7c593c518d197d18"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="smpeg"
+MAINTAINER="Andrew Tkalia"
+EMAIL="anddt@yandex.ru"
diff --git a/games/rocksndiamonds/slack-desc b/games/rocksndiamonds/slack-desc
new file mode 100644
index 0000000000..b9be63086a
--- /dev/null
+++ b/games/rocksndiamonds/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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+rocksndiamonds: rocksndiamonds (collection of boulder dash-like arcade games)
+rocksndiamonds:
+rocksndiamonds: - arcade style game for Slackware in the tradition of:
+rocksndiamonds: + "Boulder Dash" (C 64)
+rocksndiamonds: + "Emerald Mine" (Amiga)
+rocksndiamonds: + "Supaplex" (Amiga/PC)
+rocksndiamonds: + "Sokoban" (PC)
+rocksndiamonds:
+rocksndiamonds:
+rocksndiamonds:
+rocksndiamonds: