Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
( | ||
|
||
CCARGS="-DXBOARD" && | ||
default_build && | ||
install -Dm0755 $SCRIPT_DIRECTORY/chess /usr/games/chess | ||
|
||
) > $C_FIFO 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
depends ncurses | ||
|
||
optional_depends "xboard" "" "" "to use with an X based board." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo " " | ||
echo "Execute /usr/games/chess to use with xboard." | ||
echo " " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |