From a062342b4329f5fa2a100b04bce36a9aeae398be Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 20 Nov 2020 15:10:21 +0000 Subject: games/sumeria: Added (hamurabi-like game) Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- games/sumeria/README | 6 +++++ games/sumeria/slack-desc | 19 +++++++++++++ games/sumeria/sumeria.SlackBuild | 58 ++++++++++++++++++++++++++++++++++++++++ games/sumeria/sumeria.info | 10 +++++++ 4 files changed, 93 insertions(+) create mode 100644 games/sumeria/README create mode 100644 games/sumeria/slack-desc create mode 100644 games/sumeria/sumeria.SlackBuild create mode 100644 games/sumeria/sumeria.info diff --git a/games/sumeria/README b/games/sumeria/README new file mode 100644 index 0000000000..a0aaf75900 --- /dev/null +++ b/games/sumeria/README @@ -0,0 +1,6 @@ +sumeria (hamurabi-like game) + +This is the good old "Govern Ancient Sumeria", also known as +"Hamurabe", with a 1983 ecology re-write. (The more grain you leave +in stores, the more rats eat and hence breed; the more rats there are +the more likely is the plague to strike -- etc...). diff --git a/games/sumeria/slack-desc b/games/sumeria/slack-desc new file mode 100644 index 0000000000..c1845da55c --- /dev/null +++ b/games/sumeria/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------------------------------------------------------| +sumeria: sumeria (hamurabi-like game) +sumeria: +sumeria: This is the good old "Govern Ancient Sumeria", also known as +sumeria: "Hamurabe", with a 1983 ecology re-write. (The more grain you leave +sumeria: in stores, the more rats eat and hence breed; the more rats there are +sumeria: the more likely is the plague to strike -- etc...). +sumeria: +sumeria: +sumeria: +sumeria: +sumeria: diff --git a/games/sumeria/sumeria.SlackBuild b/games/sumeria/sumeria.SlackBuild new file mode 100644 index 0000000000..9a86e1bc5d --- /dev/null +++ b/games/sumeria/sumeria.SlackBuild @@ -0,0 +1,58 @@ +#!/bin/sh + +# Slackware build script for sumeria + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# VERSION came from the server timestamp of the source file. + +PRGNAM=sumeria +VERSION=${VERSION:-20020219} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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/usr/games $OUTPUT +cd $PKG/usr/games +gcc -include stdlib.h -Wl,-s -o $PRGNAM $CWD/$PRGNAM.c -lm + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/games/sumeria/sumeria.info b/games/sumeria/sumeria.info new file mode 100644 index 0000000000..dc9c8f380e --- /dev/null +++ b/games/sumeria/sumeria.info @@ -0,0 +1,10 @@ +PRGNAM="sumeria" +VERSION="20020219" +HOMEPAGE="https://www.mipmip.org/C_games/" +DOWNLOAD="https://www.mipmip.org/C_games/sumeria.c" +MD5SUM="7ff853d65672e9b4420c5db6962abee3" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" -- cgit v1.2.3