# Compiling time: 0.01 SBU
# Maintainer: CSÉCSY László <boobaa@frugalware.org>

lang=be_BY
pkgname=hunspell-be
pkgver=1.1
pkgrel=3
pkgdesc="Belarusian dictionary for Hunspell"
url="http://extensions.services.openoffice.org/project/dict-be-official"
rodepends=('hunspell>=1.1.3')
provides=('hunspell-dict')
replace=('aspell5-be')
groups=('locale-extra')
archs=('x86_64')
up2date="$pkgver"
source=(http://extensions.services.openoffice.org/files/2412/1/dict-be-official.oxt)
install=$pkgname.install
sha1sums=('6c3a7975f37d7b0f94520fa31acc7a48a83027a3')

build() {
	unzip dict-be-official.oxt
	sed -i -e "s/microsoft-cp1251/CP1251/g" be-official.aff hyph_be_BY.dic
	tail -n +3 hyph_be_BY.dic| head -n 3 > README_hyph_be_BY
	Ffilerel be-official.aff /usr/share/myspell/be_BY.aff
	Ffilerel be-official.dic /usr/share/myspell/be_BY.dic
	Ffilerel hyph_be_BY.dic /usr/share/hyphen/hyph_be_BY.dic
}
