void-packages/srcpkgs/aspell-en/template
Henry Precheur 38a62a7e19 aspell-en: remove noarch
aspell dictionnaries aren't architecture dependent: the dictionnary
format depends on size_t, therefor it needs to be made architecture
specific. This is why the dictionaries are stored in /usr/lib and not
in /usr/share.

This fixes the aspell-en package on amd64 and probably most 64bits
architectures.

More information about this:

http://aspell.net/0.61/man-html/Using-32_002dBit-Dictionaries-on-a-64_002dBit-System.html
2020-08-13 01:08:12 +00:00

29 lines
957 B
Bash

# Template file for 'aspell-en'
pkgname=aspell-en
version=2019.10.06
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=24334b4daac6890a679084f4089e1ce7edbe33c442ace776fa693d8e334f51fd
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
}
}