SUMMARY="Bulgarian dictionary for aspell program/library"
DESCRIPTION="Bulgarian (Български) dictionary for the GNU Aspell program, an \
open source spell checker."
HOMEPAGE="http://aspell.net/"
COPYRIGHT="2001-2007 Radostin Radnev (Радостин Раднев)"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://ftpmirror.gnu.org/aspell/dict/bg/aspell6-bg-${portVersion/\~/-}.tar.bz2"
CHECKSUM_SHA256="74570005dc2be5a244436fa2b46a5f612be84c6843f881f0cb1e4c775f658aaa"
SOURCE_DIR="aspell6-bg-${portVersion/\~/-}"

ARCHITECTURES="any"

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