# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
# Contributor: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=hunspell-nl
pkgver=2.20.19
pkgrel=1
pkgdesc="Dutch hunspell dictionaries"
url="https://www.opentaal.org/"
arch="noarch"
license="BSD-3-Clause"
makedepends="unzip"
source="hunspell-nl-$pkgver.tar.gz::https://github.com/OpenTaal/opentaal-hunspell/archive/$pkgver.tar.gz"
# No tests
options="!check"
subpackages="$pkgname-doc"
builddir="$srcdir/opentaal-hunspell-$pkgver"

package() {
	install -dm755 "$pkgdir"/usr/share/hunspell
	install -m644 nl.aff "$pkgdir"/usr/share/hunspell/nl.aff
	install -m644 nl.dic "$pkgdir"/usr/share/hunspell/nl.dic

	install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname/
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}

sha512sums="
19e93421da7096259c18f69dadcf49a2d9f16890edd8474ee226a39ae344803bfe4d3b952669fb1d42dcc28aed36582468f7a92c3289db18e2284be3f4889f40  hunspell-nl-2.20.19.tar.gz
"
