SUMMARY="English dictionary for aspell program/library"
DESCRIPTION="English (US, British, Canadian) language dictionary for the GNU \
Aspell program, an open source spell checker."
HOMEPAGE="http://aspell.net/"
COPYRIGHT="2000-2017 Kevin Atkinson"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://ftpmirror.gnu.org/aspell/dict/en/aspell6-en-${portVersion/\~/-}.tar.bz2"
CHECKSUM_SHA256="f11071e74b0c0753f4afabf024941a5c3a96bafe3879211ebd47bc34e76fbd2f"
SOURCE_DIR="aspell6-en-${portVersion/\~/-}"

ARCHITECTURES="any"

PROVIDES="
	aspell_en = $portVersion
	"
REQUIRES="
	haiku
	aspell >= 0.60
	"

BUILD_REQUIRES="
	devel:libaspell
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:basename
	cmd:make
	cmd:prezip_bin
	cmd:which
	"

BUILD()
{
	./configure
	make
}

INSTALL()
{
	spellDir=$dataDir/$(basename $(aspell dump config dict-dir))
	make dictdir=$spellDir datadir=$spellDir install
}
