# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=polyglot
pkgver=2.0.4
pkgrel=1
pkgdesc="Protocol adapter to run UCI chess engines under XBoard"
url="https://www.chessprogramming.org/PolyGlot"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test suite
source="http://hgm.nubati.net/releases/polyglot-$pkgver.tar.gz"
subpackages="$pkgname-doc"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e0ab6b5d7f01b7a877808e7411b510acd6b85f307c86f317bb0f8a11059f40234e75853d0524c08518b0dc4e4a17e0fa483c464c246950a6af8e4cc1a22c35d7  polyglot-2.0.4.tar.gz
"
