# Maintainer: Natanael Copa # Contributor: Valery Kartel pkgname=aspell pkgver=0.60.7 pkgrel=0 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_dev="$pkgname-utils" makedepends="ncurses-dev perl gettext-dev" source="https://ftp.gnu.org/gnu/aspell/aspell-$pkgver.tar.gz" build() { cd "$builddir" LDFLAGS="-lintl" \ ./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="6f5fcd1c29164ee18f205594b66f382b51d19b17686293a931ca92c1442d3f7228627ca7d604d860551d0d367ac34dfb2ae34170a844f51e84e390fb1edc4535 aspell-0.60.7.tar.gz"