SUMMARY="Serbian dictionary for aspell program/library"
DESCRIPTION="Serbian (Srpski/Српски) dictionary for the GNU Aspell program, an \
open source spell checker."
HOMEPAGE="http://aspell.net/"
COPYRIGHT="2005 Goran Rakic (Горан Ракић)"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://ftpmirror.gnu.org/aspell/dict/sr/aspell6-sr-${portVersion/\~/-}.tar.bz2"
CHECKSUM_SHA256="705e58fb390633c89c4cb224a1cfb34e67e09496448f7adc6500494b6e009289"
SOURCE_DIR="aspell6-sr-${portVersion/\~/-}"

ARCHITECTURES="any"

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