void-packages/srcpkgs/aspell-en/template
2016-07-06 20:32:48 +02:00

32 lines
997 B
Bash

# Template file for 'aspell-en'
pkgname=aspell-en
version=2016.06.26
revision=1
noarch=yes
wrksrc="aspell6-en-${version}-0"
build_style=configure
hostmakedepends="aspell-devel"
short_desc="English dictionary for aspell"
homepage="http://aspell.net/"
license="LGPL-2.1"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${GNU_SITE}/aspell/dict/en/aspell6-en-${version}-0.tar.bz2"
checksum=61c3d8e9671c91930ba978975a68bd317e2b9a761c8bec3637f72d26b0d39fb2
words-en_package() {
short_desc="English dictionary word list"
noarch=yes
pkg_install() {
vmkdir usr/share/dict
precat en-common.cwl en_US-wo_accents-only.cwl |
iconv --from-code=ISO-8859-1 --to-code=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 --from-code=ISO-8859-1 --to-code=UTF-8 |
cut -d/ -f1 |
sort -u >${PKGDESTDIR}/usr/share/dict/british-english
ln -s american-english ${PKGDESTDIR}/usr/share/dict/words
}
}