summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6bcce0c5d6bf29f264f2364e337d7f2a9535245 (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: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=sjaakii
pkgver=1.4.1
pkgrel=1
pkgdesc="A XBoard chess engine that can play normal chess as well as a number of other games and chess variants"
arch=('i686' 'x86_64')
url="http://www.eglebbk.dds.nl/program/chess-index.html"
license=('GPL3')
depends=('readline')
makedepends=('cmake')
source=("http://www.eglebbk.dds.nl/program/download/${pkgname}-${pkgver}-src.tar.gz")
md5sums=('a9a1307d8a6b9e3750433e7af6423ce8')

build() {
  cd "${srcdir}/SjaakII"

  [ -d build ] && rm -rf build
  mkdir build && cd build
  cmake .. \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "${srcdir}/SjaakII/build"

  make DESTDIR="${pkgdir}" install
}