# $Id: PKGBUILD 75631 2010-04-02 00:51:13Z dgriffiths $
# Maintainer: Markus M. May <triplem@tu.archserver.org>

# Contributor: Jochem Kossen <j.kossen@home.nl>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=aspell
pkgver=0.60.6
_pkgmajorver=0.60
pkgrel=4
pkgdesc="A spell checker designed to eventually replace Ispell"
url="http://aspell.net/"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('gcc-libs' 'ncurses>=5.6-7')
optdepends=('perl: to import old dictionaries')
options=(!libtool)
install=aspell.install
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('bc80f0198773d5c05086522be67334eb')

build() {
        cd ${srcdir}/${pkgname}-${pkgver}

        ./configure --prefix=/usr
        make
}

package() {
        cd ${srcdir}/${pkgname}-${pkgver}
        
        make DESTDIR=${pkgdir} install
        ln -s ${pkgname}-${_pkgmajorver} \
                ${pkgdir}/usr/lib/${pkgname}

        # cleanup info files
        rm ${pkgdir}/usr/share/info/dir
        gzip ${pkgdir}/usr/share/info/*
}
