This line needs double quotes otherwise it won't replace ${pkgver}
'https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v${pkgver}/resources/fonts/FZYTK.TTF'
| Git Clone URL: | https://aur.archlinux.org/python-rapidocr.git (read-only, click to copy) |
|---|---|
| Package Base: | python-rapidocr |
| Description: | Cross-runtime OCR library |
| Upstream URL: | https://github.com/RapidAI/RapidOCR |
| Licenses: | Apache-2.0 |
| Submitter: | aliu |
| Maintainer: | aliu |
| Last Packager: | aliu |
| Votes: | 1 |
| Popularity: | 0.013125 |
| First Submitted: | 2025-11-30 02:14 (UTC) |
| Last Updated: | 2026-07-03 18:28 (UTC) |
« First ‹ Previous 1 2
This line needs double quotes otherwise it won't replace ${pkgver}
'https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v${pkgver}/resources/fonts/FZYTK.TTF'
Having an issue with the font file, not clear where, but - for me - there was a certificate error with www.modelscope.cn.
I can download the file ok from a browser, but all my certificates are up to date... ended up modifying the PKGBUILD to point to a local copy of the font and that allowed it to continue (and immich-machine-learning too)
Sorry, forgot about this. Will fix today.
Just noticed immich-machine-learning has been failing to update because of this also:
Dec 08 19:44:09 builder-amd64 update-aurto[1858455]: ==> Extracting sources...
Dec 08 19:44:09 builder-amd64 update-aurto[1858455]: -> Extracting v3.4.2.tar.gz with bsdtar
Dec 08 19:44:10 builder-amd64 update-aurto[1858455]: -> Extracting required_for_whl_v3.0.0.zip with bsdtar
Dec 08 19:44:10 builder-amd64 update-aurto[1858455]: ==> Starting prepare()...
Dec 08 19:44:10 builder-amd64 update-aurto[1860420]: patching file setup.py
Dec 08 19:44:10 builder-amd64 update-aurto[1860420]: rm: cannot remove 'rapidocr/rapidocr/': No such file or directory
Dec 08 19:44:10 builder-amd64 update-aurto[1860420]: ==> ERROR: A failure occurred in prepare().
Dec 08 19:44:10 builder-amd64 update-aurto[1860420]: Aborting...
Interesting. The directory spontaneously appears for me. I’ll add a folder existence check when I get home in a few days.
Line 60
rm -r build/lib/rapidocr/rapidocr/ # no idea why\ {this happens,only under makepkg}
Causes the build to fail as the directory doesn't exist. Removing the line allows the build to succeed (with makepkg)
Pinned Comments
aliu commented on 2026-06-24 20:20 (UTC) (edited on 2026-06-24 20:20 (UTC) by aliu)
You may notice that the official repositories have yet to package python-installer 1.0.1+. We require that version due to a bug that blocks upgrades, related to symlinks.
To get this package to build, simply bump python-installer yourself:
paru -G python-installer) or by simple cloning (git clone https://gitlab.archlinux.org/archlinux/packaging/packages/python-installer.git).pkgver=1.0.1. Replace line 39 withb2sums=('9101f90e108894c675b605123a372b45b43b4720fb1ac2eee18ea15d7759e8e1e0adeccc0da006fb3bba25e5094310158206182527ff82249a3aecacf08fcb39')(or update the checksum yourself).cdto the directory for python-installer's PKGBUILD and runmakepkg -si.