diff --git a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-bloat b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-bloat index cd55df31..8ba77d7c 100755 --- a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-bloat +++ b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-bloat @@ -12,6 +12,7 @@ rm -rf /usr/lib/qt4/plugins/codecs rm -rf /usr/lib/qt4/plugins/bearer rm -rf /usr/lib/qt4/plugins/inputmethods rm -rf /usr/share/qt4/{doc,mkspecs,phrasebooks} +rm -rf /usr/lib*/qt5/plugins/{bearer,platformthemes} rm -rf /usr/share/guile/*/{*.txt,scripts} rm -rf /usr/share/awk/ diff --git a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n index fbfd33f8..5ca4704a 100755 --- a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n +++ b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-l10n @@ -26,3 +26,10 @@ find /usr/lib/locale -mindepth 1 -maxdepth 1 -type d \! -name '*.utf8' -print0 | # dangling symlinks find /usr/lib/locale \! -readable -delete + +find /usr/share/qt5/translations/ -type f | \ + grep -v -e '/qtbase_[[:alpha:]][[:alpha:]]*\.qm$' \ + -e '/alterator_browser_qt_[[:alpha:]][[:alpha:]]*\.qm$' | \ +while read f; do + rm -f "$f" +done