blob: 442330508235d9af6a1051ef2ad35c908bd30166 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=hunspell-en
pkgver=2018.04.16
pkgrel=0
pkgdesc="English hunspell dictionaries"
url="http://wordlist.aspell.net/dicts/"
arch="noarch"
license="LGPL-2.0-or-later scowl"
options="!check" # data only package
source="https://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_US-$pkgver.zip
https://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_CA-$pkgver.zip
https://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_GB-large-$pkgver.zip
"
builddir="$srcdir"/$pkgname-$pkgver
unpack() {
msg "Unpacking sources..."
mkdir -p "$builddir"
cd "$builddir"
for u in $source; do
local s="$SRCDEST/$(filename_from_uri $u)"
unzip $s
done
}
prepare() {
cd "$builddir"
default_prepare
sed -i "s:SET UTF8:SET UTF-8:g" *.aff
}
build() {
:
}
package() {
cd "$builddir"
install -dm755 $pkgdir/usr/share/hunspell
install -m644 en_*.dic en_*.aff $pkgdir/usr/share/hunspell
local lang
for lang in en_AG en_AU en_BS en_BW en_BZ en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW; do
ln -svf en_GB-large.aff $pkgdir/usr/share/hunspell/$lang.aff
ln -svf en_GB-large.dic $pkgdir/usr/share/hunspell/$lang.dic
done
for lang in en_PH; do
ln -svf en_US.aff $pkgdir/usr/share/hunspell/$lang.aff
ln -svf en_US.dic $pkgdir/usr/share/hunspell/$lang.dic
done
# docs
install -dm755 ${pkgdir}/usr/share/doc/$pkgname
install -m644 README_en_*.txt $pkgdir/usr/share/doc/$pkgname
# licenses
install -D -m644 README_en_US.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_US
install -D -m644 README_en_CA.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_CA
install -D -m644 README_en_GB-large.txt $pkgdir/usr/share/licenses/$pkgname/Copyright_en_GB-large
}
sha512sums="acefa22216953089e8bf829b8707f5d154851a450874e9c15f2b87e967b6bc5d5d17bc9d9b6c47a96bc81df3e1c06873b5f0f64e6d2d69aedbc47e68ab9851b1 hunspell-en_US-2018.04.16.zip
19a36657dad34eb6e8803f07b10992765b39d3c4f8c5893af6baddf16bca9dff6c608ea1c62b6970f78d4b0bb1c00f869889654477b436d59929316f86be0d5e hunspell-en_CA-2018.04.16.zip
27e735d53d20a1b5e5e234ece7a970623d7a5247cf122ab21ee62cc5326d3dc4c6e8c2daeaa362cc85ce50ddf1a9124754b0cb3f1800b2e101ad4b9ad562846b hunspell-en_GB-large-2018.04.16.zip"
|