summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6531254ff56af7bba5e0e1c8c1e63f19c772770e (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
31
32
33
34
35
36
37
38
# Maintainer: Auguste Pop < auguste [at] gmail [dot] com >
# Contributor: P. Badredin <p dot badredin at gmail dot com>
# Contributor: Justin Blanchard <UncombedCoconut at gmail dot com>

pkgname=stockfish
pkgver=7
pkgrel=1
epoch=1
pkgdesc="A strong chess engine written by Tord Romstad, Marco Costalba, Joona Kiiski"
arch=('i686' 'x86_64')
url="http://stockfishchess.org/"
license=('GPL3')
install=${pkgname}.install
_pkgfilename=${pkgname}-${pkgver}-src
source=("http://stockfish.s3.amazonaws.com/${_pkgfilename}.zip")
md5sums=('41f1410820192466d15166712181ae03')

build()
{
    cd "$srcdir/${_pkgfilename}/src"

    if [[ "$CARCH" == "i686" ]];
    then
        _arch=x86-32
    elif grep popcnt /proc/cpuinfo 2>&1
    then
        _arch=x86-64-modern
    else
        _arch=x86-64
    fi
    make profile-build ARCH=$_arch
}

package()
{
    cd "$srcdir/${_pkgfilename}/src"
    make PREFIX="$pkgdir/usr" install
}