path: root/games
diff options
author Erik Hanson <>2010-05-11 20:00:33 +0200
committer Robby Workman <>2010-05-11 20:00:33 +0200
commit2a5294512c755a3e32f0f25d323b316ea0d459c9 (patch)
tree4feedac72ef0a09e313534f8e12beffeac99460d /games
parent7ddbf832358b5790f761bf77265d4343a84146cc (diff)
games/gnubg: Added to 12.0 repository
Diffstat (limited to 'games')
6 files changed, 124 insertions, 0 deletions
diff --git a/games/gnubg/README b/games/gnubg/README
new file mode 100644
index 0000000000..6b377c6c56
--- /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/ b/games/gnubg/
new file mode 100644
index 0000000000..b7aa508b4a
--- /dev/null
+++ b/games/gnubg/
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database &> /dev/null
diff --git a/games/gnubg/gnubg.SlackBuild b/games/gnubg/gnubg.SlackBuild
new file mode 100644
index 0000000000..8a69a8879b
--- /dev/null
+++ b/games/gnubg/gnubg.SlackBuild
@@ -0,0 +1,61 @@
+# Slackware build script for GNU Backgammon
+# Written by Erik Hanson
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+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 .
+./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
+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/ > $PKG/install/
+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 0000000000..d29268200b
--- /dev/null
+++ b/games/gnubg/gnubg.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=GNU Backgammon
+Comment=GTK or console backgammon program with analysis
+Exec=gnubg -w
diff --git a/games/gnubg/ b/games/gnubg/
new file mode 100644
index 0000000000..82d6345158
--- /dev/null
+++ b/games/gnubg/
@@ -0,0 +1,8 @@
+MAINTAINER="Erik Hanson"
diff --git a/games/gnubg/slack-desc b/games/gnubg/slack-desc
new file mode 100644
index 0000000000..21a77c13b2
--- /dev/null
+++ b/games/gnubg/slack-desc
@@ -0,0 +1,19 @@
+# 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: 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.