summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e77ab8607fdfd1f46ed16f934596890bab1ae7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: scorici <scorici AT yahoo DOT com>
pkgname=fics-timeseal
pkgver=1
pkgrel=5
pkgdesc="Timeseal support for eboard, xboard, scid and maybe others for playing chess on FICS"
arch=(any)
url="http://www.freechess.org/"
license=('unknown')
install=$pkgname.install
optdepends=('eboard: works automagically' \
            'xboard: run fics-xboard-timeseal from a terminal' \
            'scid:   before connecting browse and select /usr/bin/timeseal')
source=("http://sourceforge.net/p/scidvspc/code/HEAD/tree/timeseal/timeseal.Linux-i386?format=raw")
md5sums=('b30dd4fafb3ac1c87804e0ab2fc7bdd7')
package() {
mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/eboard
cp timeseal.Linux-i386\?format=raw $pkgdir/usr/bin/timeseal
echo "#!/bin/bash
if [ -a /usr/bin/xboard ];then
xboard -ics -icshost 167.114.65.195 -telnet -telnetProgram timeseal
echo 
echo 
echo Connection to freechess.org lost\!
echo If you were in the middle of a game reconnect to resume it.
else echo xboard is not installed on your system
fi
" > $pkgdir/usr/bin/fics-xboard-timeseal
chmod +x $pkgdir/usr/bin/*timeseal
ln -s /usr/bin/timeseal $pkgdir/usr/share/eboard/timeseal.Linux
}