The virtual tessdata package was introduced in version 2:4.1.0-3 of all the tesseract-data-* packages
(
https://github.com/archlinux/svntogit-community/commit/36edc91ab2e93012a5390b136ac02f155473ce6a).
aarch64 (
http://mirror.archlinuxarm.org/aarch64/community/) has them but for armv7h (
http://mirror.archlinuxarm.org/armv7h/community/) the repo still provides version 2:4.1.0-1 from May 2021.
The tesseract-data-* packages only contain the model file which is not architecture specific:
$this->bbcode_second_pass_code('', '
pacman -Ql tesseract-data-eng
tesseract-data-eng /usr/
tesseract-data-eng /usr/share/
tesseract-data-eng /usr/share/tessdata/
tesseract-data-eng /usr/share/tessdata/eng.traineddata
')
So you could just go ahead and download and install the tesseract-data-* packages you want from the aarch64 repo, e.g.:
$this->bbcode_second_pass_code('', '
wget http://mirror.archlinuxarm.org/aarch64/community/tesseract-data-eng-2%3A4.1.0-3-any.pkg.tar.xz
sudo pacman -U tesseract-data-eng-2\:4.1.0-3-any.pkg.tar.xz
')
After that you should be able to upgrade tesseract to version 5.1.x
edit: The armv7h repo was updated so this workaround should not be necessary anymore.