# Contributor: ITmodulo # Maintainer: ITmodulo pkgname=hunspell-pl pkgver=20250201 pkgrel=0 pkgdesc="Polish dictionary for Hunspell" arch="noarch" url='https://www.sjp.pl/slownik/ort/' license="GPL-3.0-or-later" makedepends="unzip enca" depends="hunspell" source="https://sjp.pl/sl/ort/sjp-myspell-pl-$pkgver.zip" options="!check" # static files prepare() { default_prepare unzip pl_PL.zip enca -L pl -x utf8 pl_PL.aff enca -L pl -x utf8 pl_PL.dic # fix encoding in .aff files sed -i "s/SET ISO8859-2/SET UTF-8/" pl_PL.aff } package() { cd src/ install -dm755 "$pkgdir"/usr/share/hunspell install -m644 pl_PL.aff "$pkgdir"/usr/share/hunspell install -m644 pl_PL.dic "$pkgdir"/usr/share/hunspell } sha512sums=" 3d0fdd52c1e03b7d1a3c2e646241ef979ab1708a2d9fd2670f0ced6b2e06a6ce6de719f057bfd03c8f2c927c374e23f5ae9a2f04167e4b8bfc22144faa94cf60 sjp-myspell-pl-20250201.zip "