Compare commits

...
Sign in to create a new pull request.

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

View file

@ -7,6 +7,7 @@ flatpak:
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-??
@ -15,6 +16,8 @@ flatpak:
- hyphen-??
- hyphen-??-*
- hyphen-???
- mythes-??
- mythes-??-*
# for cleanup-commands (part of runtime)
- coreutils-single
- sed
@ -22,7 +25,10 @@ flatpak:
mkdir -p /app
cd /usr/lib/locale
for d in *; do
case $d in en_*) continue ;; esac
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
@ -40,6 +46,15 @@ flatpak:
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