updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / scid_vs_pc / PKGBUILD
blob37a38b0200e322c70ddbd2f3084daf3a7feda315
1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
3 pkgname=scid_vs_pc
4 pkgver=4.6
5 pkgrel=3
6 pkgdesc="Shane's Chess Information Database"
7 arch=('i686' 'x86_64')
8 url="http://scidvspc.sourceforge.net/"
9 license=('GPL2')
10 depends=('snack' 'tdom' 'tkimg' 'zlib')
11 install=$pkgname.install
12 conflicts=('scid')
13 source=(http://ignum.dl.sourceforge.net/project/scidvspc/source/scid_vs_pc-$pkgver.tgz)
14 md5sums=('4334ac29cad4cf7497afba34dad110e9')
16 build() {
17     cd $srcdir/$pkgname-$pkgver
19     # Build
20     ./configure BINDIR=/usr/bin/ SHAREDIR=/usr/share/scid/ TCL_VERSION="8.5" OPTIMIZE="-O2 -funroll-loops"
21     make
23     # Data
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
31     # Sound
32     install -m 755 -d $pkgdir/usr/share/scid/sounds
33     install -m 666 ./sounds/* $pkgdir/usr/share/scid/sounds/
35     # Opening books
36     install -m 755 -d $pkgdir/usr/share/scid/books
37     install -m 666 ./books/* $pkgdir/usr/share/scid/books/
39     # Bases
40     install -m 755 -d $pkgdir/usr/share/scid/bases
41     install -m 666 ./bases/* $pkgdir/usr/share/scid/bases/
43     # Documentation
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/*
48     # Chess engines
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
55     # Fonts
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
59     # Desktop icon
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