linux_alpine/srcpkgs/hunspell-pl/APKBUILD
itmodulo 7ddb782a52
Some checks failed
Release Alpine apk for ARM64v8 / compilation-arm64v8 (push) Has been cancelled
update hunspell-pl, supersonic-desktop
2025-04-05 13:20:05 +02:00

33 lines
939 B
Text
Executable file

# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname=hunspell-pl
pkgver=20250301
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="
9586a15e1eb5dca2ab5eb6892583857f4b36e3e1736d1d11b62c9f1890ab625a8a9425c403545f6cf32ab5188ca6e8d046a7129a1587ae3088ca0242c7eb11d1 sjp-myspell-pl-20250301.zip
"