void-packages/srcpkgs/aspell-en/template

30 lines
957 B
Bash

# Template file for 'aspell-en'
pkgname=aspell-en
version=2020.12.07
revision=2
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=4c8f734a28a088b88bb6481fcf972d0b2c3dc8da944f7673283ce487eac49fb3
words-en_package() {
short_desc="English dictionary word list"
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
}
}