# Maintainer: Natanael Copa pkgname=aspell pkgver=0.60.6.1 _pkgmajorver=${pkgver%.*} pkgrel=2 pkgdesc="A spell checker designed to eventually replace Ispell" url="http://aspell.net/" arch="all" license="LGPL2+" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends="ncurses-dev perl" install= source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz libmath.patch" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 # we want add -lm to linker flag for libaspell so wil build that # separately. this is just an ugly workaround make libaspell.la LDFLAGS="$LDFLAGS -lm" || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 ln -s $pkgname-${_pkgmajorver} "$pkgdir"/usr/lib/$pkgname || return 1 } md5sums="e66a9c9af6a60dc46134fdacf6ce97d7 aspell-0.60.6.1.tar.gz 715f4e138ab33b27201d90cbc98b4fb3 libmath.patch"