# Maintainer: Jesus E. pkgname=libvoikko pkgver=4.3.1 pkgrel=3 _pyver=3.8 pkgdesc="A spelling and grammar checker, hyphenator and collection of related linguistic data for Finnish language" arch=('i686' 'x86_64') url='https://voikko.sourceforge.net' license=('GPL-2') depends=('gcc-libs') makedepends=('python') source=("https://www.puimula.org/voikko-sources/libvoikko/$pkgname-$pkgver.tar.gz") sha512sums=('6677fac7c0cba1289dda23b0c0a4bbe44480ce747189d40634ac57811728c1942a795efd50270e933373fabab9c54e82a8f9fde06d936442820e3f8019574f08') build() { cd $pkgname-$pkgver # Workaround encoding error export LANG=en_US.UTF-8 ./configure \ --prefix=/usr \ --enable-hfst=false \ --with-dictionary-path=/usr/share/voikko make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install install -Dm644 python/libvoikko.py -t "$pkgdir"/usr/lib/python${_pyver}/site-packages install -Dm644 COPYING -t $pkgdir/usr/share/licenses/$pkgname }