Compare commits

..

3 commits

Author SHA1 Message Date
Yaakov Selkowitz
b12f9dab2c F41 EOL 2025-05-08 14:02:38 -04:00
Yaakov Selkowitz
7458cf294a Add mythes 2025-03-02 15:01:04 -05:00
Yaakov Selkowitz
3a0e71d716 Fixes for C.utf8
The fallback locale must be present, and other *.utf8/LC_CTYPE symlinks
redirected to it.
2025-02-12 16:19:41 -05:00

65
container.yaml Normal file
View file

@ -0,0 +1,65 @@
flatpak:
id: org.fedoraproject.Platform.Locale
branch: f41
build-extension: true
runtime: org.fedoraproject.Platform
runtime-version: f41
sdk: org.fedoraproject.Sdk
name: f41/flatpak-runtime-locale
component: flatpak-runtime-locale
end-of-life: Fedora 41 runtime is no longer supported.
packages:
- glibc-langpack-*
- hunspell-??
- hunspell-??-*
- hunspell-???
- hyphen-??
- hyphen-??-*
- hyphen-???
- mythes-??
- mythes-??-*
# for cleanup-commands (part of runtime)
- coreutils-single
- sed
cleanup-commands: |
mkdir -p /app
cd /usr/lib/locale
for d in *; do
case $d in C.*|en_*) continue ;; esac
if [ -L $d/LC_CTYPE ]; then
ln -sfn /usr/lib/locale/C.utf8/LC_CTYPE $d/LC_CTYPE;
fi
mkdir -p /app/${d%_*}/lib
mv $d /app/${d%_*}/lib/
done
cd /usr/share/hunspell
for f in *; do
l=`echo $f | sed -e 's/\([^-_\.]*\)[-_\.].*/\1/'`
case $l in en) continue ;; esac
mkdir -p /app/$l/hunspell
mv $f /app/$l/hunspell/
done
cd /usr/share/hyphen
for f in *; do
l=`echo $f | sed -e 's/hyph_\([^-_\.]*\)[-_\.].*/\1/'`
case $l in en) continue ;; esac
mkdir -p /app/$l/hyphen
mv $f /app/$l/hyphen/
done
cd /usr/share/mythes
mv th_eo{,_v2}.dat
mv th_eo{,_v2}.idx
for f in *; do
l=`echo $f | sed -e 's/th_\([^-_\.]*\)[-_\.].*/\1/'`
case $l in en) continue ;; esac
mkdir -p /app/$l/mythes
mv $f /app/$l/mythes/
done
ln -sfn ../../sh/hunspell/sh_YU.aff /app/bs/hunspell/bs_BA.aff
ln -sfn ../../sh/hunspell/sh_YU.dic /app/bs/hunspell/bs_BA.dic
ln -sfn ../../tl/hunspell/tl_PH.aff /app/fil/hunspell/fil_PH.aff
ln -sfn ../../tl/hunspell/tl_PH.dic /app/fil/hunspell/fil_PH.dic
ln -sfn ../../plt/hunspell/plt.aff /app/mg/hunspell/mg.aff
ln -sfn ../../plt/hunspell/plt.dic /app/mg/hunspell/mg.dic
ln -sfn ../../sh/hyphen/hyph_sh_YU.dic /app/bs/hyphen/hyph_bs_BA.dic
ln -sfn ../../it/hyphen/hyph_it_IT.dic /app/la/hyphen/hyph_la_VA.dic