Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcb09f74df |
1 changed files with 87 additions and 0 deletions
87
container.yaml
Normal file
87
container.yaml
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
flatpak:
|
||||
id: org.fedoraproject.Platform.Locale
|
||||
branch: f43
|
||||
build-extension: true
|
||||
runtime: org.fedoraproject.Platform
|
||||
runtime-version: f43
|
||||
sdk: org.fedoraproject.Sdk
|
||||
name: f43/flatpak-runtime-locale
|
||||
component: flatpak-runtime-locale
|
||||
packages:
|
||||
- glibc-langpack-*
|
||||
- hunspell-??
|
||||
- hunspell-??-*
|
||||
- hunspell-???
|
||||
- hyphen-??
|
||||
- hyphen-??-*
|
||||
- hyphen-???
|
||||
- mythes-??
|
||||
- mythes-??-*
|
||||
- qt6-qttranslations
|
||||
- qt6-qtwebengine
|
||||
# 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
|
||||
cd /usr/share/qt6/qtwebengine_dictionaries
|
||||
for f in *; do
|
||||
l=`echo $f | sed -e 's/\([^-_\.]*\)[-_\.].*/\1/'`
|
||||
case $l in en) continue ;; esac
|
||||
mkdir -p /app/$l/qt6
|
||||
mv $f /app/$l/qt6/
|
||||
done
|
||||
cd /usr/share/qt6/translations
|
||||
for f in *.qm; do
|
||||
l=`echo $f | sed -e 's/[^-_\.]*_\([^-_\.]*\)[-_\.].*/\1/'`
|
||||
case $l in en) continue ;; esac
|
||||
mkdir -p /app/$l/qt6
|
||||
mv $f /app/$l/qt6/
|
||||
done
|
||||
cd /usr/share/qt6/translations/qtwebengine_locales
|
||||
for f in *; do
|
||||
l=`echo $f | sed -e 's/\([^-_\.]*\)[-_\.].*/\1/'`
|
||||
case $l in en) continue ;; esac
|
||||
mkdir -p /app/$l/qt6
|
||||
mv $f /app/$l/qt6/
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue