Fix for language dependent packages

With this fix we finally get rid of the "Some language packs are missing" messages in Mint's "Languages" app by doing a clean install only of the packages which are needed to complete the languages on the system.
pull/70/head
Mac 2023-01-20 14:22:23 +01:00
parent 1b377a6fe0
commit 57950356ba
1 changed files with 39 additions and 17 deletions

View File

@ -10,10 +10,11 @@ export DEBIAN_FRONTEND=noninteractive
DPKG_CFG_FRAGMENT=/etc/dpkg/dpkg.cfg.d/non-interactive
# Linux distro
script_distro='Linux Mint 21'
script_distro='Linux Mint 21.1'
# Additional packages
packages=(
# Program packages
libreoffice
keepassxc
gparted
@ -22,12 +23,43 @@ packages=(
cheese
vlc
# Language support
# Language related packages
# Generic
openoffice.org-hyphenation
language-pack-gnome-ar
language-pack-gnome-fa
language-pack-gnome-ru
language-pack-gnome-uk
# AR
language-pack-gnome-ar-base
firefox-locale-ar
fonts-arabeyes
hunspell-ar
libreoffice-l10n-ar
mythes-ar
thunderbird-locale-ar
# DE
firefox-locale-de
hunspell-de-at
hunspell-de-ch
hunspell-de-de
# EN
thunderbird-locale-en-gb
# FA
language-pack-gnome-fa-base
firefox-locale-fa
libreoffice-l10n-fa
myspell-fa
thunderbird-locale-fa
# RU
language-pack-gnome-ru-base
firefox-locale-ru
thunderbird-locale-ru
# UK
language-pack-gnome-uk-base
libreoffice-l10n-uk
firefox-locale-uk
thunderbird-locale-uk
hyphen-uk
mythes-uk
hunspell-uk
wukrainian
)
###
@ -73,7 +105,7 @@ echo "\
###
# Maintainer: Computertruhe e. V.
# Website: https://computertruhe.de/
# Version: 2.2.1
# Version: 2.3.0
# Repo: https://codeberg.org/Computertruhe/Setup-Skripte
# Distro: ${script_distro}
###
@ -119,16 +151,6 @@ pkg mint-meta-codecs
e "Zusätzliche Software installieren …"
pkg "${packages[@]}"
e "Sprachunterstützung vervollständigen …"
pkg $(check-language-support)
e "Arabische Schrift"
pkg fonts-arabeyes
e "Kyrillische Schrift"
pkg xfonts-cyrillic
# These packages have to be installed after "$(check-language-support)".
pkg hunspell-de-at hunspell-de-ch hunspell-de-de hunspell-uk hunspell-ru
e "Unnötige Pakete entfernen und Cache bereinigen …"
apt clean --yes --quiet
apt autoremove --yes --quiet