2 # Contributor: Jesse Jaara <gmail.com: jesse.jaara>
3 # Contributor: Jussi Timperi <gmail.com: jussi.timperi>
8 pkgdesc="A spelling and grammar checker, hyphenator and collection of related linguistic data for Finnish language"
10 url="http://voikko.sourceforge.net"
14 source=(https://www.puimula.org/voikko-sources/libvoikko/$pkgname-$pkgver.tar.gz{,.asc})
15 sha512sums=('6677fac7c0cba1289dda23b0c0a4bbe44480ce747189d40634ac57811728c1942a795efd50270e933373fabab9c54e82a8f9fde06d936442820e3f8019574f08'
17 validpgpkeys=('AC5D65F10C8596D7E2DAE2633D309B604AE3942E') # Harri Pitkänen <hatapitk@iki.fi>
22 # Workaround encoding error
23 export LANG=en_US.UTF-8
24 ./configure --prefix=/usr --enable-hfst=false --with-dictionary-path=/usr/share/voikko
31 make DESTDIR="$pkgdir" install
32 mkdir -p "$pkgdir"/usr/lib/python3.10/site-packages
33 cp python/libvoikko.py "$pkgdir"/usr/lib/python3.10/site-packages/libvoikko.py