# Template file for 'hunspell'
pkgname=hunspell
version=1.2.8
revision=6
build_style=gnu-configure
configure_args="--with-ui"
makedepends="pkg-config bison libstdc++-devel ncurses-devel"
short_desc="Improved spellchecker"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=af563e13646620e608052b46974e10d0fc3e4d48b1b996f9771cbfac6dfc3c38
homepage="http://hunspell.sourceforge.net"
license="GPL-2, LGPL, MPL"
long_desc="
 Hunspell is the default spell checker of OpenOffice.org office suite
 and expectant spell checker of Mozilla Firefox and Thunderbird.

 Main features:

  * Unicode support.
  * Conditional and multiple affixes for languages with rich morphology.
  * Extended compound word support.
  * Morphological analysis (in custom item and arrangement style).
  * Hunspell is based on MySpell and works also with MySpell dictionaries.
  * GPL/LGPL/MPL tri-license."

hunspell-devel_package() {
	depends="libstdc++-devel ncurses-devel hunspell>=${version}"
	short_desc+=" -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove usr/share/man/man3
	}
}

hunspell_package() {
	pkg_install() {
		vmove usr
	}
}
