# Template file for 'hyphen'
pkgname=hyphen
version=2.8.8
revision=3
build_style=gnu-configure
hostmakedepends="perl"
short_desc="ALTLinux hyphenation library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1"
homepage="http://sourceforge.net/projects/hunspell/files/Hyphen"
distfiles="${SOURCEFORGE_SITE}/hunspell/$pkgname-$version.tar.gz"
checksum=304636d4eccd81a14b6914d07b84c79ebb815288c76fe027b9ebff6ff24d5705

post_install() {
	vlicense COPYING
}

hyphen-tools_package() {
	depends="hyphen>=${version}_${revision}"
	short_desc+=" - tools"
	pkg_install() {
		vmove usr/bin
	}
}

hyphen-devel_package() {
	depends="hyphen>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}
