Skip to content

Commit

Permalink
gnuchess: resurrected and bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
v4hn committed Jul 12, 2012
1 parent cdc5289 commit 5dddb01
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
7 changes: 7 additions & 0 deletions games/gnuchess/BUILD
@@ -0,0 +1,7 @@
(

CCARGS="-DXBOARD" &&
default_build &&
install -Dm0755 $SCRIPT_DIRECTORY/chess /usr/games/chess

) > $C_FIFO 2>&1
3 changes: 3 additions & 0 deletions games/gnuchess/DEPENDS
@@ -0,0 +1,3 @@
depends ncurses

optional_depends "xboard" "" "" "to use with an X based board."
17 changes: 17 additions & 0 deletions games/gnuchess/DETAILS
@@ -0,0 +1,17 @@
MODULE=gnuchess
VERSION=6.0.2
SOURCE=$MODULE-$VERSION.tar.gz
SOURCE_URL=$GNU_URL/chess
SOURCE_VFY=sha1:a3455e7a523f11db542bdffe1c86c2530fb8d0c5
WEB_SITE=http://www.gnu.org/software/chess/chess.html
ENTERED=20020428
UPDATED=20120305
SHORT="Lets most modern computers play a full game of chess"

cat << EOF
GNU Chess lets most modern computers play a full game of chess. It has a plain
terminal interface but supports visual interfaces such as X-Windows "xboard" as
well as a full 3-dimensional wooden chess-board protocol for the Novag Chess
board enabling one to be relatively free of the computer itself. See the
distribution README for explanation.
EOF
3 changes: 3 additions & 0 deletions games/gnuchess/POST_INSTALL
@@ -0,0 +1,3 @@
echo " "
echo "Execute /usr/games/chess to use with xboard."
echo " "
18 changes: 18 additions & 0 deletions games/gnuchess/chess
@@ -0,0 +1,18 @@
#!/bin/sh
#
# chess: this is the proper command string required to execute
# xboard with gnuchess.
#
# related modules: xboard, gnuchess

GCHESS=`which gnuchess`
XBORD=`which xboard`

if [ -e "$GCHESS" ]; then
$XBORD -fcp "$GCHESS" -fd "/usr/games" -scp "$GCHESS xboard" -sd "/usr/games"
else
echo " "
echo "$GCHESS missing. Please install the gnuchess module!"
exit 0
fi
exit 0

0 comments on commit 5dddb01

Please sign in to comment.