From 1792648f68c3ed0e9c52f9e6bd442b942942c26c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 16 Jan 2015 18:21:21 +0100 Subject: [PATCH] aspell-en: include word list subpkg. --- srcpkgs/aspell-en/template | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/srcpkgs/aspell-en/template b/srcpkgs/aspell-en/template index b08b866404a..6a853c40e18 100644 --- a/srcpkgs/aspell-en/template +++ b/srcpkgs/aspell-en/template @@ -1,7 +1,7 @@ # Template file for 'aspell-en' pkgname=aspell-en version=7.1 -revision=1 +revision=2 noarch=yes wrksrc="aspell6-en-${version}-0" build_style=configure @@ -13,3 +13,21 @@ license="LGPL-2.1" maintainer="Juan RP " distfiles="${GNU_SITE}/aspell/dict/en/aspell6-en-${version}-0.tar.bz2" checksum=ff9df3c2e8c5bb19c6a66078b36a0ef4c4dfb0fcb969e29f7b5345e26d748d0a + +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 + } +} +