updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / scid / PKGBUILD
blobd62e30f43441f49dadf05016af77b99cff51390e
1 pkgname=scid
2 pkgver=4.3
3 pkgrel=1
4 pkgdesc="Chess database application"
5 arch=(i686 x86_64)
6 url="http://scid.sourceforge.net"
7 license=('GPL')
8 depends=(tk tcl)
9 install=
10 source=($pkgname-$pkgver.tar.bz2::http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2?download)
12 md5sums=('66592f91b690458d3aecb582142fc159')
15 build() {
16     cd $startdir/src/$pkgname
17     #patch -Np1 < ../phalanx.patch || return 1
18     ./configure BINDIR=/usr/bin SHAREDIR=/usr/share/scid TCL_VERSION="8.5" OPTIMIZE="-O2 -funroll-loops"
19     make || return 1
20     install -m 755 -d $startdir/pkg/usr/share/scid
21     install -m 755 -d $startdir/pkg/usr/bin
22     install -m 755 -d $startdir/pkg/usr/share/scid/data/
23     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 $startdir/pkg/usr/bin
24     install -m 644 -p scid.eco $startdir/pkg/usr/share/scid/data/
25     install -m 755 -d $startdir/pkg/usr/share/scid/books
26     install -m 666 ./books/* $startdir/pkg/usr/share/scid/books/
27     install -m 755 -d $startdir/pkg/usr/share/scid/bases
28     #install -m 666 ./bases/* $startdir/pkg/usr/share/scid/bases/
29     install -m 755 -d $startdir/pkg/usr/share/scid/html
30     cp -r ./html/* $startdir/pkg/usr/share/scid/html/
31     chmod -R 0777 $startdir/pkg/usr/share/scid/html/*
32     install -m 755 -d $startdir/pkg/usr/share/scid/engines
33     install -m 755 -d $startdir/pkg/usr/share/scid/engines/phalanx-scid
34     install ./engines/phalanx-scid/phalanx-scid $startdir/pkg/usr/share/scid/engines/phalanx-scid
35     install -m 755 -d $startdir/pkg/usr/share/scid/engines/togaII1.2.1a
36     install ./engines/togaII1.2.1a/src/togaII $startdir/pkg/usr/share/scid/engines/togaII1.2.1a/