# Maintainer: Behnam Momeni pkgname=('enchant-pure') _pkgname=enchant pkgver="2.1.2" pkgrel=1 pkgdesc="A wrapper library for pure and generic spell checking for all languages, supporting Aspell and Myspell/Hunspell backend engines" url="https://github.com/AbiWord/enchant" arch=('any') license=('LGPL') depends=('aspell>=0.50.0' 'glib2' 'hunspell') provides=("${_pkgname}") conflicts=("${_pkgname}") source=("https://github.com/AbiWord/enchant/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz") sha512sums=('6cb2eeccc617c005998b16ebc33a84a05cec116b26fd679fc1416110821a85a16605c8564672e1168ac6c865cfcca6680005d1219aa615ca1c2393bd523ae0c4') build() { cd "${srcdir}/${_pkgname}-${pkgver}" ./configure --prefix=/usr --enable-static=no --with-aspell=yes --with-hunspell=yes --with-voikko=no --with-hspell=no --with-zemberek=no --with-applespell=no sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }