# Contributor: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=colibri-core
pkgver=2.5.9
pkgrel=0
pkgdesc="NLP tool and C++ library to quickly and efficiently count and extract patterns from large corpus data"
arch="all !x86 !armv7 !armhf" #only 64-bit architectures are supported
options="!check"
url="https://proycon.github.io/colibri-core"
license="GPL-3.0-only"
makedepends="libtool bzip2-dev autoconf automake autoconf-archive"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/proycon/colibri-core/archive/refs/tags/v$pkgver.tar.gz"

build() {
	sh ./bootstrap
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
43cb078c5db760372f9229ee2d212cf5d1c3df10a5e8803f29041ceb962280f3f0991bf91a89fc24d085d3370bd62758b7028cb6607e4df7a066a224b0242e03  colibri-core-2.5.9.tar.gz
"
