diff options
Diffstat (limited to 'games/gnubg')
-rw-r--r-- | games/gnubg/README | 24 | ||||
-rw-r--r-- | games/gnubg/doinst.sh | 3 | ||||
-rw-r--r-- | games/gnubg/gnubg.SlackBuild | 61 | ||||
-rw-r--r-- | games/gnubg/gnubg.desktop | 9 | ||||
-rw-r--r-- | games/gnubg/gnubg.info | 8 | ||||
-rw-r--r-- | games/gnubg/slack-desc | 19 |
6 files changed, 124 insertions, 0 deletions
diff --git a/games/gnubg/README b/games/gnubg/README new file mode 100644 index 0000000000000..6b377c6c5671f --- /dev/null +++ b/games/gnubg/README @@ -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+). diff --git a/games/gnubg/doinst.sh b/games/gnubg/doinst.sh new file mode 100644 index 0000000000000..b7aa508b4af4c --- /dev/null +++ b/games/gnubg/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database &> /dev/null +fi diff --git a/games/gnubg/gnubg.SlackBuild b/games/gnubg/gnubg.SlackBuild new file mode 100644 index 0000000000000..8a69a8879b4ae --- /dev/null +++ b/games/gnubg/gnubg.SlackBuild @@ -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 diff --git a/games/gnubg/gnubg.desktop b/games/gnubg/gnubg.desktop new file mode 100644 index 0000000000000..d29268200bc75 --- /dev/null +++ b/games/gnubg/gnubg.desktop @@ -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; diff --git a/games/gnubg/gnubg.info b/games/gnubg/gnubg.info new file mode 100644 index 0000000000000..82d6345158b48 --- /dev/null +++ b/games/gnubg/gnubg.info @@ -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" diff --git a/games/gnubg/slack-desc b/games/gnubg/slack-desc new file mode 100644 index 0000000000000..21a77c13b208f --- /dev/null +++ b/games/gnubg/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-------------------------------------------------------| +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: |