# Contributors: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=libfolia
pkgver=2.18
pkgrel=0
pkgdesc="C++ library for FoLiA (Format for Linguistic Annotation)"
options="!check"
arch="all"
url="https://github.com/LanguageMachines/libfolia"
license="GPL-3.0-only"
makedepends="libtool libxml2-dev ticcutils-dev icu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/libfolia/releases/download/v$pkgver/libfolia-$pkgver.tar.gz"

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

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
b6d3e1c6ef106782cdace65fde4b87ea8694609094ba50ace9ff914e4365d7bd953bcfb8bd873d20c047a91c970840cdc118a542760fdbb7177f98588a825869  libfolia-2.18.tar.gz
"
