APP=aspell
VERSION=0.60.7
BUILD=1sml
HOMEPAGE="http://aspell.net/"
REQUIRES="gcc-libs netbsd-curses perl"
DESC="Spell checker for GNU Linux"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc/aspell \
    --libdir=/lib \
    --enable-pkgdatadir=/lib/aspell \
    --enable-data-dir=/lib/aspell \
    --enable-pkglibdir=/lib/aspell \
    --enable-dict-dir=/lib/aspell

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
b02d4f5e82f5a001a6dd626088405cc0987036f735585d4ad1a025e59f009c631318c8a9480096c552ef647b59d0050f8503af28aa1e7b858d1598d3495ba509  aspell-0.60.7.tar.lz
"
