games/sumeria: Added (hamurabi-like game)

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2020-11-20 15:10:21 +00:00 committed by Willy Sudiarto Raharjo
parent ddd616ed6f
commit a062342b43
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
4 changed files with 93 additions and 0 deletions

6
games/sumeria/README Normal file
View File

@ -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...).

19
games/sumeria/slack-desc Normal file
View File

@ -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:

View File

@ -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}

View File

@ -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"