diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2014-05-06 17:52:54 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-05-12 07:35:46 +0700 |
commit | dc027f4e97befe6e800674e106c2ba687c6cdf05 (patch) | |
tree | de81120f361293facf72546938688ab249d05a09 /games | |
parent | d356f9aef7a029c8497fea94af8b8d2c73471e5f (diff) |
games/hexglass: Added (Tetris-like puzzle game).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/hexglass/README | 3 | ||||
-rw-r--r-- | games/hexglass/doinst.sh | 3 | ||||
-rw-r--r-- | games/hexglass/hexglass.SlackBuild | 103 | ||||
-rw-r--r-- | games/hexglass/hexglass.desktop | 9 | ||||
-rw-r--r-- | games/hexglass/hexglass.info | 10 | ||||
-rw-r--r-- | games/hexglass/slack-desc | 19 |
6 files changed, 147 insertions, 0 deletions
diff --git a/games/hexglass/README b/games/hexglass/README new file mode 100644 index 0000000000000..5121c80bf1cac --- /dev/null +++ b/games/hexglass/README @@ -0,0 +1,3 @@ +The HexGlass is a Tetris-like puzzle game. Ten different types of +blocks continuously fall from above and you must arrange them to +make horizontal rows of hexagonal bricks. diff --git a/games/hexglass/doinst.sh b/games/hexglass/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/games/hexglass/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/hexglass/hexglass.SlackBuild b/games/hexglass/hexglass.SlackBuild new file mode 100644 index 0000000000000..cd4949c78b725 --- /dev/null +++ b/games/hexglass/hexglass.SlackBuild @@ -0,0 +1,103 @@ +#!/bin/sh + +# Slackware build script for hexglass + +# 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=hexglass +VERSION=${VERSION:-1.2.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="-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 +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 {} \; + +# create Makefile +qmake + +# fix path installation +sed -i 's/INSTALL\_ROOT)\/usr\/lib64\/qt\/bin/INSTALL\_ROOT)\/usr\/bin/g' Makefile + +make +make INSTALL_ROOT=$PKG install + +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 + +# create .desktop file for this script +mkdir -p $PKG/usr/share/applications +install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop + +# convert .xpm logo image to .png file +convert resources/logo512x512.xpm $PRGNAM.png + +mkdir -p $PKG/usr/share/pixmaps/ +install -D -m644 $PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES COPYING 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/hexglass/hexglass.desktop b/games/hexglass/hexglass.desktop new file mode 100644 index 0000000000000..5442f94ef7785 --- /dev/null +++ b/games/hexglass/hexglass.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name= HexGlass +Comment= The HexGlass is a Tetris-like puzzle game +Exec=hexglass +Icon=hexglass +Terminal=false +Type=Application +Categories=Game;Puzzle; +GenericName=Game diff --git a/games/hexglass/hexglass.info b/games/hexglass/hexglass.info new file mode 100644 index 0000000000000..4db53dad3de46 --- /dev/null +++ b/games/hexglass/hexglass.info @@ -0,0 +1,10 @@ +PRGNAM="hexglass" +VERSION="1.2.1" +HOMEPAGE="https://code.google.com/p/hexglass" +DOWNLOAD="https://hexglass.googlecode.com/files/hexglass-1.2.1.tar.gz" +MD5SUM="408148e6b05065d12edd7066b929465b" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Dimitris Zlatanidis" +EMAIL="d.zlatanidis@gmail.com" diff --git a/games/hexglass/slack-desc b/games/hexglass/slack-desc new file mode 100644 index 0000000000000..aced54c166bda --- /dev/null +++ b/games/hexglass/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------------------------------------------------------| +hexglass: hexglass (Tetris-like puzzle game) +hexglass: +hexglass: The HexGlass is a Tetris-like puzzle game. Ten different types of +hexglass: blocks continuously fall from above and you must arrange them to +hexglass: make horizontal rows of hexagonal bricks. +hexglass: +hexglass: Homepage: https://code.google.com/p/hexglass +hexglass: +hexglass: +hexglass: +hexglass: |