57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
# Description: Hunspell dictionary for Spanish
|
|
# URL: https://forja.rediris.es/projects/rla-es/
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Depends on: hunspell
|
|
|
|
name=hunspell-es
|
|
version=0.7
|
|
release=1
|
|
source=(
|
|
http://forja.rediris.es/frs/download.php/2933/es_ANY.oxt
|
|
http://forja.rediris.es/frs/download.php/2953/es_AR.oxt
|
|
http://forja.rediris.es/frs/download.php/2952/es_BO.oxt
|
|
http://forja.rediris.es/frs/download.php/2951/es_CL.oxt
|
|
http://forja.rediris.es/frs/download.php/2950/es_CO.oxt
|
|
http://forja.rediris.es/frs/download.php/2949/es_CR.oxt
|
|
http://forja.rediris.es/frs/download.php/2948/es_CU.oxt
|
|
http://forja.rediris.es/frs/download.php/2947/es_DO.oxt
|
|
http://forja.rediris.es/frs/download.php/2946/es_EC.oxt
|
|
http://forja.rediris.es/frs/download.php/2945/es_ES.oxt
|
|
http://forja.rediris.es/frs/download.php/2944/es_GT.oxt
|
|
http://forja.rediris.es/frs/download.php/2943/es_HN.oxt
|
|
http://forja.rediris.es/frs/download.php/2942/es_MX.oxt
|
|
http://forja.rediris.es/frs/download.php/2941/es_NI.oxt
|
|
http://forja.rediris.es/frs/download.php/2940/es_PA.oxt
|
|
http://forja.rediris.es/frs/download.php/2939/es_PE.oxt
|
|
http://forja.rediris.es/frs/download.php/2938/es_PR.oxt
|
|
http://forja.rediris.es/frs/download.php/2937/es_PY.oxt
|
|
http://forja.rediris.es/frs/download.php/2936/es_SV.oxt
|
|
http://forja.rediris.es/frs/download.php/2935/es_UY.oxt
|
|
http://forja.rediris.es/frs/download.php/2934/es_VE.oxt
|
|
)
|
|
|
|
build() {
|
|
mkdir -p $PKG/usr/share/hunspell
|
|
|
|
for i in *.oxt; do
|
|
unzip -q -n $i '*.dic' '*.aff' -d $PKG/usr/share/hunspell
|
|
done
|
|
|
|
# Replace duplicate files with symbolic links
|
|
pushd $PKG/usr/share/hunspell
|
|
(md5sum * | sort | uniq --repeated -w 32 --all-repeated=separate; echo) | \
|
|
while read sum name; do
|
|
if [ -n "$name" ]; then
|
|
[ -z "$dups" ] && declare -A dups
|
|
dups[${#dups[*]}]=$name
|
|
else
|
|
for name in ${dups[@]}; do
|
|
[ $name != ${dups[0]} ] && ln -s -f ${dups[0]} $name
|
|
done
|
|
unset dups
|
|
fi
|
|
done
|
|
popd
|
|
|
|
}
|