Skip to content

Commit 83e5b90

Browse files
committed
test different method
1 parent f716340 commit 83e5b90

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

get-dependencies.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff 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

1715
echo "Installing debloated packages..."
1816
echo "---------------------------------------------------------------"
@@ -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
2725
echo "Downloading tesseract script models..."
2826
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
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
#

0 commit comments

Comments
 (0)