void-packages/srcpkgs/aspell-en/template
2020-01-28 10:20:58 +01:00

32 lines
984 B
Bash

# Template file for 'aspell-en'
pkgname=aspell-en
version=2019.10.06
revision=1
archs=noarch
wrksrc="aspell6-en-${version}-0"
build_style=configure
hostmakedepends="aspell-devel which"
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=24334b4daac6890a679084f4089e1ce7edbe33c442ace776fa693d8e334f51fd
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
}
}