# Maintainer: Natanael Copa # Contributor: Valery Kartel pkgname=aspell pkgver=0.60.6.1 pkgrel=10 pkgdesc="A spell checker designed to eventually replace Ispell" url="http://aspell.net/" arch="all" license="LGPL2+" subpackages="$pkgname-compat $pkgname-utils $pkgname-dev $pkgname-doc $pkgname-libs" depends= makedepends="ncurses-dev perl" install= source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } 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 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } compat() { pkgdesc="aspell compatibility scripts for ispell and unix spell" depends="aspell" arch="noarch" install -d "$subpkgdir"/usr/bin cd "$pkgdir"/usr/share/$pkgname mv spell ispell "$subpkgdir"/usr/bin/ } utils() { pkgdesc="aspell misc utils" depends="aspell perl" arch="all" install -d "$subpkgdir"/usr/bin cd "$pkgdir"/usr/bin mv pre* aspell-import run-with-aspell word-list-compress "$subpkgdir"/usr/bin/ } dev() { default_dev depends="aspell-utils" } libs() { default_libs mv "$pkgdir"/usr/share "$subpkgdir"/usr } md5sums="e66a9c9af6a60dc46134fdacf6ce97d7 aspell-0.60.6.1.tar.gz" sha256sums="f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1 aspell-0.60.6.1.tar.gz" sha512sums="f310c7590be98406589b5c26ca36a2ecfe4733f0b40fd6c176b96b7955ef2b5cd0ec9a3d770cf132146ae7a896042b4b698945112995ee1ae66adcfa5542247f aspell-0.60.6.1.tar.gz"