# Maintainer: Daniel Renninghoff # Contributor: gucong # Contributor: P. A. López-Valencia # Contributor: wangjiezhe pkgname=hoichess pkgver=0.18.0 pkgrel=1 pkgdesc="Xboard compatible chess engine and xiangqi (Chinese chess) engine" arch=('i686' 'x86_64') license=('GPL2') url="http://www.hoicher.de/hoichess" depends=() source=(${url}/download/${pkgname}-${pkgver}-gpl.tar.gz) md5sums=('2e4fc17257713df59db2aec3cc864f62') prepare() { cd "$srcdir/$pkgname-$pkgver" sed -i 's/games$/bin/' Makefile sed -i 's/CXXFLAGS\ =/CXXFLAGS\ +=/' src/Makefile cd "book" sh "download-gnuchess-book" } build() { cd "$srcdir/$pkgname-$pkgver" make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install }