File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ pacman -Syu --noconfirm \
1010 gimagereader-qt \
1111 kvantum \
1212 lxqt-qtplugin \
13- qt6ct \
14- tesseract-data-eng \
15- tesseract-data-osd
13+ qt6ct
1614
1715echo " Installing debloated packages..."
1816echo " ---------------------------------------------------------------"
@@ -26,12 +24,9 @@ get-debloated-pkgs --add-common --prefer-nano
2624# Use tessdata_fast script models since they are way lighter than what archlinux provides
2725echo " Downloading tesseract script models..."
2826echo " ---------------------------------------------------------------"
29- dst_dir=/usr/share/tessdata
30- tessdata_source=https://github.com/tesseract-ocr/tessdata_fast/raw/main/script
31- for lang in Latin Cyrillic Arabic Devanagari HanS HanT Japanese Hangul Greek; do
32- echo " Downloading $lang .traineddata"
33- wget --retry-connrefused --tries=30 " $tessdata_source " /" $lang " .traineddata -O " $dst_dir " /" $lang " .traineddata
34- done
27+ rm -rf /usr/share/tessdata
28+ git clone --depth 1 https://github.com/tesseract-ocr/tessdata_fast /usr/share/tessdata
29+ rm -rf /usr/share/tessdata/.git
3530
3631# if you also have to make nightly releases check for DEVEL_RELEASE = 1
3732#
You can’t perform that action at this time.
0 commit comments