games/gnubg: Added to 12.0 repository

This commit is contained in:
Erik Hanson 2010-05-11 20:00:33 +02:00 committed by Robby Workman
parent 7ddbf83235
commit 2a5294512c
6 changed files with 124 additions and 0 deletions

24
games/gnubg/README Normal file
View File

@ -0,0 +1,24 @@
GNU Backgammon (gnubg) is for playing and analysing backgammon positions,
games and matches. It's based on a neural network. In the past twelve months
it has made enormous progress. It currently plays at about the level of a
championship flight tournament player. Depending on its parameters and its
luck in recent games, it rates from around 1900 to 2000 on FIBS, the First
Internet Backgammon Server -- at its strongest, it ranks in the top 5 of over
6000 rated players there) and is gradually improving; it should be somewhat
stronger than this when released. Since almost all of the CPU time required
during supervised training is spent performing rollouts, and rollouts can
easily be performed in parallel, it is hoped that users will be able to pool
rollout results and collectively train it to a level stronger than any
individual could obtain.
You can also compete against recent versions of gnubg on FIBS; it plays
there under the names gnu, mgnutest, mpgnu, mgnu_advanced, mgnu_expert,
mgnu_WClass, ParlorBot and mgnu_zp.
GNU Backgammon also playes on GamesGrid. A version of GNU Backgammon with no
lookahead, 0-ply, plays with the nickname GGraccoon. GGraccoon is a very
popular opponent among the members at GamesGrid. GGraccoon usually rates
about 1900.
You may play GNU Backgammon using the command line or a graphical interface
(based on GTK+).

3
games/gnubg/doinst.sh Normal file
View File

@ -0,0 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database &> /dev/null
fi

View File

@ -0,0 +1,61 @@
#!/bin/sh
# Slackware build script for GNU Backgammon
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=gnubg
VERSION=0.16
SRCVER=20080325
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP || exit 1
rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-source-SNAPSHOT-$SRCVER.tar.gz || exit 1
cd $PRGNAM || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--mandir=/usr/man \
|| exit 1
make || exit 1
make install-strip DESTDIR=$PKG || exit 1
gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ABOUT-NLS AUTHORS CODING COPYING ChangeLog INSTALL NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/$PRGNAM/doc $PKG/usr/doc/$PRGNAM-$VERSION/html
( cd $PKG/usr/share/$PRGNAM ; ln -s /usr/doc/$PRGNAM-$VERSION/html doc )
mkdir -p $PKG/usr/share/applications
cat $CWD/gnubg.desktop > $PKG/usr/share/applications/gnubg.desktop
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_${SRCVER}-$ARCH-$BUILD$TAG.tgz

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=GNU Backgammon
GenericName=Backgammon
Comment=GTK or console backgammon program with analysis
Exec=gnubg -w
Terminal=false
Icon=/usr/share/gnubg/gnubg.png
Type=Application
Categories=Game;BoardGame;GTK;

8
games/gnubg/gnubg.info Normal file
View File

@ -0,0 +1,8 @@
PRGNAM="gnubg"
VERSION="0.16"
HOMEPAGE="http://www.gnubg.org/"
DOWNLOAD="http://www.gnubg.org/media/sources/gnubg-source-SNAPSHOT-20080325.tar.gz"
MD5SUM="04d6c8b694f013d3ca0236214103fd29"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="rworkman"

19
games/gnubg/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 ':'.
|-----handy-ruler-------------------------------------------------------|
gnubg: GNU Backgammon (command line or a gui backgammon)
gnubg:
gnubg: GNU Backgammon (gnubg) is for playing and analysing backgammon
gnubg: positions, games and matches. It's based on a neural network. It
gnubg: currently plays at about the level of a championship flight
gnubg: tournament player. Command line and Graphical (GTK+) interfaces
gnubg: are available. OpenGL is optional for 3D board support.
gnubg:
gnubg: http://www.gnubg.org/
gnubg:
gnubg: