|
@ -24,3 +24,14 @@ |
|
|
bindir=$root/$ROCKCFG_PKG_GAMES_BINDIR |
|
|
bindir=$root/$ROCKCFG_PKG_GAMES_BINDIR |
|
|
datadir=$root/$ROCKCFG_PKG_GAMES_DATADIR |
|
|
datadir=$root/$ROCKCFG_PKG_GAMES_DATADIR |
|
|
|
|
|
|
|
|
|
|
|
create_gnuchessx(){ |
|
|
|
|
|
# create an executable shell script that allows |
|
|
|
|
|
# xboard to run gnuchess in server mode |
|
|
|
|
|
|
|
|
|
|
|
prog=$bindir/gnuchessx |
|
|
|
|
|
echo -e "#! /bin/sh\nexec gnuchess -x" > $prog |
|
|
|
|
|
chmod a+x $prog |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
hookadd postinstall 3 "create_gnuchessx" |
|
|
|
|
|
|