-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
48 lines (40 loc) · 1.48 KB
/
get-dependencies.sh
File metadata and controls
48 lines (40 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm \
gimagereader-qt \
hunspell-de \
hunspell-en_us \
hunspell-es_any \
hunspell-fr \
hunspell-ru \
kvantum \
lxqt-qtplugin \
qt6ct
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common --prefer-nano
# Comment this out if you need an AUR package
#make-aur-package PACKAGENAME
# If the application needs to be manually built that has to be done down here
# Use tessdata_fast script models since they are way lighter than what archlinux provides
echo "Downloading tesseract script models..."
echo "---------------------------------------------------------------"
tessdata_dir=/usr/share/tessdata
tessdata_source=https://github.com/tesseract-ocr/tessdata_fast/raw/main
rm -rf "$tessdata_dir"
mkdir -p "$tessdata_dir"
for lang in deu eng fin fra por rus spa; do
echo "Downloading $lang.traineddata"
wget --retry-connrefused --tries=30 "$tessdata_source"/"$lang".traineddata -O "$tessdata_dir"/"$lang".traineddata
done
wget --retry-connrefused --tries=30 "$tessdata_source"/osd.traineddata -O "$tessdata_dir"/osd.traineddata
# if you also have to make nightly releases check for DEVEL_RELEASE = 1
#
# if [ "${DEVEL_RELEASE-}" = 1 ]; then
# nightly build steps
# else
# regular build steps
# fi