mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 13:55:12 +08:00
60 lines
2.0 KiB
Bash
60 lines
2.0 KiB
Bash
# Platform packages for Chakra
|
|
|
|
pkgname=hunspell-en
|
|
pkgver=2016.01.19
|
|
pkgrel=2
|
|
pkgdesc="English hunspell dictionaries"
|
|
arch=(any)
|
|
url="http://wordlist.sourceforge.net/"
|
|
license=('LGPL' 'custom:scowl')
|
|
provides=('hunspell-en-us' 'hunspell-en-gb')
|
|
conflicts=('hunspell-en-us' 'hunspell-en-gb')
|
|
replaces=('hunspell-en-us' 'hunspell-en-gb')
|
|
optdepends=('hunspell: the spell checking libraries and apps')
|
|
source=(http://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_US-$pkgver.zip
|
|
http://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_CA-$pkgver.zip
|
|
http://downloads.sourceforge.net/project/wordlist/speller/$pkgver/hunspell-en_GB-large-$pkgver.zip)
|
|
md5sums=('de94962667a51ef9d65c7804b0b62971'
|
|
'fc1f621871b2f78598e7ddebe7c3f0e6'
|
|
'53d431a7f1db8178610e0c42bf2a4d6a')
|
|
build() {
|
|
/bin/true
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
install -dm755 ${pkgdir}/usr/share/hunspell
|
|
install -m644 en_*.dic en_*.aff $pkgdir/usr/share/hunspell
|
|
|
|
pushd $pkgdir/usr/share/hunspell/
|
|
en_GB_aliases="en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW"
|
|
for lang in $en_GB_aliases; do
|
|
ln -s en_GB-large.aff $lang.aff
|
|
ln -s en_GB-large.dic $lang.dic
|
|
done
|
|
en_US_aliases="en_PH"
|
|
for lang in $en_US_aliases; do
|
|
ln -s en_US.aff $lang.aff
|
|
ln -s en_US.dic $lang.dic
|
|
done
|
|
popd
|
|
|
|
# the symlinks
|
|
install -dm755 ${pkgdir}/usr/share/myspell/dicts
|
|
pushd $pkgdir/usr/share/myspell/dicts
|
|
for file in $pkgdir/usr/share/hunspell/*; do
|
|
ln -sv /usr/share/hunspell/$(basename $file) .
|
|
done
|
|
popd
|
|
|
|
# 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
|
|
}
|
|
|