1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
6 pkgdesc="Shane's Chess Information Database"
8 url="http://scidvspc.sourceforge.net/"
10 depends=('snack' 'tdom' 'tkimg' 'zlib')
11 install=$pkgname.install
13 source=(http://ignum.dl.sourceforge.net/project/scidvspc/source/scid_vs_pc-$pkgver.tgz)
14 md5sums=('4334ac29cad4cf7497afba34dad110e9')
17 cd $srcdir/$pkgname-$pkgver
20 ./configure BINDIR=/usr/bin/ SHAREDIR=/usr/share/scid/ TCL_VERSION="8.5" OPTIMIZE="-O2 -funroll-loops"
24 install -m 755 -d $pkgdir/usr/bin
25 install -m 755 -d $pkgdir/usr/share/scid
26 install -m 755 -d $pkgdir/usr/share/scid/data
27 install -m 755 scid sc_addmove sc_epgn sc_spell sc_eco sc_import sc_remote sc_tree scidpgn pgnfix spliteco pgnscid tkscid tcscid scmerge scidlet scidt $pkgdir/usr/bin
28 install -m 644 -p scid.eco $pkgdir/usr/share/scid/data
29 install -m 644 -p spelling.ssp $pkgdir/usr/share/scid
32 install -m 755 -d $pkgdir/usr/share/scid/sounds
33 install -m 666 ./sounds/* $pkgdir/usr/share/scid/sounds/
36 install -m 755 -d $pkgdir/usr/share/scid/books
37 install -m 666 ./books/* $pkgdir/usr/share/scid/books/
40 install -m 755 -d $pkgdir/usr/share/scid/bases
41 install -m 666 ./bases/* $pkgdir/usr/share/scid/bases/
44 install -m 755 -d $pkgdir/usr/share/scid/html
45 cp -r ./html/* $pkgdir/usr/share/scid/html/
46 chmod -R 0777 $pkgdir/usr/share/scid/html/*
49 install -m 755 -d $pkgdir/usr/share/scid/engines
50 install -m 755 -d $pkgdir/usr/share/scid/engines/phalanx
51 install engines/phalanx/phalanx $pkgdir/usr/bin/phalanx
52 install -m 755 -d $pkgdir/usr/share/scid/engines/toga
53 install engines/toga/src/fruit $pkgdir/usr/bin/fruit
56 install -m 755 -d $pkgdir/usr/share/fonts/truetype/Scid
57 install fonts/ScidChessBerin.ttf fonts/ScidChessTraveller.ttf $pkgdir/usr/share/fonts/truetype/Scid
60 install -Dm644 ./icons/scid.png $pkgdir/usr/share/pixmaps/scid.png
61 install -Dm644 $startdir/scid_vs_pc.desktop $pkgdir/usr/share/applications/scid_vs_pc.desktop