File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ ARCH=$(uname -m)
66
77echo " Installing package dependencies..."
88echo " ---------------------------------------------------------------"
9- pacman -Syu --noconfirm gimagereader-qt kvantum lxqt-qtplugin qt6ct
9+ pacman -Syu --noconfirm \
10+ gimagereader-qt \
11+ kvantum \
12+ lxqt-qtplugin \
13+ qt6ct \
14+ tesseract-data-eng \
15+ tesseract-data-osd
1016
1117echo " Installing debloated packages..."
1218echo " ---------------------------------------------------------------"
@@ -17,6 +23,16 @@ get-debloated-pkgs --add-common --prefer-nano
1723
1824# If the application needs to be manually built that has to be done down here
1925
26+ # Use tessdata_fast script models since they are way lighter than what archlinux provides
27+ echo " Downloading tesseract script models..."
28+ echo " ---------------------------------------------------------------"
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
35+
2036# if you also have to make nightly releases check for DEVEL_RELEASE = 1
2137#
2238# if [ "${DEVEL_RELEASE-}" = 1 ]; then
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export DESKTOP=/usr/share/applications/gimagereader-qt6.desktop
1414# Deploy dependencies
1515quick-sharun \
1616 /usr/bin/gimagereader-qt6 \
17- /usr/bin/tesseract
17+ /usr/bin/tesseract \
18+ /usr/share/tessdata
1819
1920# Additional changes can be done in between here
2021
You can’t perform that action at this time.
0 commit comments