SUMMARY="Swedish dictionary for aspell program/library"
DESCRIPTION="Swedish dictionary for the GNU Aspell program, an open source \
spell checker."
HOMEPAGE="http://aspell.net/"
COPYRIGHT="1998-2002 Skåne Sjælland Linux User Group, Jacob Sparre Andersen
	2000-2001 Martin Norbäck
	2003-2004 Kevin Atkinson"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://ftpmirror.gnu.org/aspell/dict/sv/aspell-sv-${portVersion/\~/-}.tar.bz2"
CHECKSUM_SHA256="9b70573c9c8cf76f5cdb6abcdfb834a754bbaa1efd7d6f57f47b8a91a19c5c0a"
SOURCE_DIR="aspell-sv-${portVersion/\~/-}"

ARCHITECTURES="any"

PROVIDES="
	aspell_sv = $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
}
