void-packages/srcpkgs/aspell-en/template
2019-03-01 12:04:45 -03:00

32 lines
979 B
Bash

# Template file for 'aspell-en'
pkgname=aspell-en
version=2018.04.16
revision=1
wrksrc="aspell6-en-${version}-0"
build_style=configure
hostmakedepends="aspell-devel"
short_desc="English dictionary for aspell"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1-or-later"
homepage="http://aspell.net/"
distfiles="${GNU_SITE}/aspell/dict/en/aspell6-en-${version}-0.tar.bz2"
checksum=f11071e74b0c0753f4afabf024941a5c3a96bafe3879211ebd47bc34e76fbd2f
archs=noarch
words-en_package() {
short_desc="English dictionary word list"
archs=noarch
pkg_install() {
vmkdir usr/share/dict
precat en-common.cwl en_US-wo_accents-only.cwl |
iconv -f ISO-8859-1 -t UTF-8 |
cut -d/ -f1 |
sort -u >${PKGDESTDIR}/usr/share/dict/american-english
precat en-common.cwl en_GB-ise-wo_accents-only.cwl |
iconv -f ISO-8859-1 -t UTF-8 |
cut -d/ -f1 |
sort -u >${PKGDESTDIR}/usr/share/dict/british-english
ln -s american-english ${PKGDESTDIR}/usr/share/dict/words
}
}