27 lines
931 B
Plaintext
27 lines
931 B
Plaintext
|
# Description: engine that plays chess variants
|
||
|
# URL: http://home.hccnet.nl/h.g.muller/CVfairy.html
|
||
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
||
|
# Depends on:
|
||
|
|
||
|
name=fairymax
|
||
|
version=4.8S
|
||
|
release=1
|
||
|
source=("http://hgm.nubati.net/$name.tar.gz")
|
||
|
|
||
|
build() {
|
||
|
cd Fairy-Max
|
||
|
install -d "$PKG/usr/bin"
|
||
|
install -d "$PKG/usr/share/games/$name"
|
||
|
install -d "$PKG/usr/share/man/man6"
|
||
|
gcc -O2 fairymax.c -DINI_FILE=\"/usr/share/games/$name/fmax.ini\" -o fairymax
|
||
|
gcc -O2 fairymax.c -DINI_FILE=\"/usr/share/games/$name/fmax.ini\" -DSHATRANJ -o shamax
|
||
|
gcc -O2 maxqi.c -DINI_FILE=\"/usr/share/games/$name/qmax.ini\" -o maxqi
|
||
|
install -m 0755 -t "$PKG/usr/bin" fairymax shamax maxqi
|
||
|
install -m 0644 -t "$PKG/usr/share/games/$name" data/*.ini
|
||
|
pod2man -s 6 fairymax.pod > fmax.man
|
||
|
cp fmax.man fairymax.6
|
||
|
rm -f fairymax.6.gz
|
||
|
gzip fairymax.6
|
||
|
cp fairymax.6.gz "$PKG/usr/share/man/man6"
|
||
|
}
|