mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
main/hunspell-en: support apostrophes
also fixup unpack/prepare- sources already have UTF-8 and just srcdir works fine closes #14897
This commit is contained in:
parent
d420c65bf3
commit
a76cc42f1a
@ -1,7 +1,7 @@
|
||||
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
||||
pkgname=hunspell-en
|
||||
pkgver=2020.12.07
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="English hunspell dictionaries"
|
||||
url="http://wordlist.aspell.net/dicts/"
|
||||
arch="noarch"
|
||||
@ -11,22 +11,9 @@ 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
|
||||
apostrophe.patch
|
||||
"
|
||||
|
||||
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() {
|
||||
default_prepare
|
||||
sed -i "s:SET UTF8:SET UTF-8:g" *.aff
|
||||
}
|
||||
builddir="$srcdir"
|
||||
|
||||
package() {
|
||||
install -dm755 "$pkgdir"/usr/share/hunspell
|
||||
@ -52,6 +39,9 @@ package() {
|
||||
install -D -m644 README_en_GB-large.txt "$pkgdir"/usr/share/licenses/$pkgname/Copyright_en_GB-large
|
||||
}
|
||||
|
||||
sha512sums="a35ff630883e2410164e21669e6a46d15c73c76d969829cbf20903949dc7815886c0907f192aad9d363f777dcc9acfbd1e60c8175fbebf14d551e1d6e524c075 hunspell-en_US-2020.12.07.zip
|
||||
sha512sums="
|
||||
a35ff630883e2410164e21669e6a46d15c73c76d969829cbf20903949dc7815886c0907f192aad9d363f777dcc9acfbd1e60c8175fbebf14d551e1d6e524c075 hunspell-en_US-2020.12.07.zip
|
||||
6e34bddbc1f8fd37c4b57d4520cd89a1f301430e7202cc35b0918ca856ff3eaba00743ef904a8b89f806812729976169826857a0fa2f452dd0ed922eeb6a9303 hunspell-en_CA-2020.12.07.zip
|
||||
a402c40717cd185ea8c14be2d4dc7df67580f197d276ae660a7cf478ae3e07e469c78271feb0c4c6b7c1c418bfb10e7f42c1e5f4b9635a4d3c47e1af4a747a4c hunspell-en_GB-large-2020.12.07.zip"
|
||||
a402c40717cd185ea8c14be2d4dc7df67580f197d276ae660a7cf478ae3e07e469c78271feb0c4c6b7c1c418bfb10e7f42c1e5f4b9635a4d3c47e1af4a747a4c hunspell-en_GB-large-2020.12.07.zip
|
||||
09f4ff19e628cb58bc43a62fd39bb9be88ef0e0d262d2462b44db15d0f4a222aa74d5a1798aed13260eb874ff6be9cd7a2f21f5fd96ba9b27c26a9432253d0a8 apostrophe.patch
|
||||
"
|
||||
|
36
main/hunspell-en/apostrophe.patch
Normal file
36
main/hunspell-en/apostrophe.patch
Normal file
@ -0,0 +1,36 @@
|
||||
Patch-Source: https://src.fedoraproject.org/rpms/hunspell-en/blob/867a4c3e890757878ec8a45c22701640a8b4817f/f/hunspell-en-allow-non-typographical.marks.patch
|
||||
(inspired)
|
||||
--
|
||||
--- a/en_CA.aff
|
||||
+++ b/en_CA.aff
|
||||
@@ -14,7 +14,7 @@
|
||||
COMPOUNDRULE 2
|
||||
COMPOUNDRULE n*1t
|
||||
COMPOUNDRULE n*mp
|
||||
-WORDCHARS 0123456789
|
||||
+WORDCHARS 0123456789'
|
||||
|
||||
PFX A Y 1
|
||||
PFX A 0 re .
|
||||
--- a/en_US.aff
|
||||
+++ b/en_US.aff
|
||||
@@ -14,7 +14,7 @@
|
||||
COMPOUNDRULE 2
|
||||
COMPOUNDRULE n*1t
|
||||
COMPOUNDRULE n*mp
|
||||
-WORDCHARS 0123456789
|
||||
+WORDCHARS 0123456789'
|
||||
|
||||
PFX A Y 1
|
||||
PFX A 0 re .
|
||||
--- a/en_GB-large.aff
|
||||
+++ b/en_GB-large.aff
|
||||
@@ -14,7 +14,7 @@
|
||||
COMPOUNDRULE 2
|
||||
COMPOUNDRULE n*1t
|
||||
COMPOUNDRULE n*mp
|
||||
-WORDCHARS 0123456789
|
||||
+WORDCHARS 0123456789'
|
||||
|
||||
PFX A Y 1
|
||||
PFX A 0 re .
|
Loading…
Reference in New Issue
Block a user