# Maintainer: Natanael Copa # Contributor: Valery Kartel pkgname=aspell pkgver=0.60.6.1 pkgrel=13 pkgdesc="A spell checker designed to eventually replace Ispell" url="http://aspell.net/" arch="all" license="LGPL-2.0-or-later" subpackages="$pkgname-compat::noarch $pkgname-utils $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" depends= depends_dev="$pkgname-utils" makedepends="ncurses-dev perl gettext-dev" install= source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz 0001-Compile-Fixes-for-GCC-7.patch " builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$builddir" default_prepare update_config_sub } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --enable-dict-dir=/usr/share/$pkgname \ --enable-pkgdatadir=/usr/share/$pkgname \ --enable-compile-in-filters make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } compat() { pkgdesc="aspell compatibility scripts for ispell and unix spell" depends="$pkgname" install -d "$subpkgdir"/usr/bin cd "$pkgdir"/usr/share/$pkgname mv spell ispell "$subpkgdir"/usr/bin/ } utils() { pkgdesc="aspell misc utils" depends="$pkgname perl" install -d "$subpkgdir"/usr/bin cd "$pkgdir"/usr/bin mv pre* aspell-import run-with-aspell word-list-compress "$subpkgdir"/usr/bin/ } libs() { default_libs mv "$pkgdir"/usr/share "$subpkgdir"/usr rm -fr "$pkgdir"/usr/lib } sha512sums="f310c7590be98406589b5c26ca36a2ecfe4733f0b40fd6c176b96b7955ef2b5cd0ec9a3d770cf132146ae7a896042b4b698945112995ee1ae66adcfa5542247f aspell-0.60.6.1.tar.gz 05875eca05d3b5ba9b7577f193fd8b0a2a372b4392f7a7901aee250bacbde924622e27278dc50582be684ed5d289968a98ee70ae0d9f6cb44a50ed454805c58a 0001-Compile-Fixes-for-GCC-7.patch"