The issue for this and other localised piper-voices packages. The proper way to fix this is to change the following line from:
git lfs install
to:
git lfs install --local
The default behaviour of git lfs install is to setup the LFS filters inside the global .gitconfig file. Adding --local makes it modify (or create) a .gitignore file inside the current repository, which in this case is the local copy of the piper-voices repo from huggingface.co, so it doesn't conflict with any constraints enforced by makepkg.
Pinned Comments
AlphaJack commented on 2024-03-06 13:57 (UTC)
As @evorster reported, a split package for such a big collection is not viable in the AUR.
Split packages in the repos (e.g.
tesseract-datafrom which I took inspiration) work fine because the end user can download and install them individually, while split packages from the AUR must build and package everything, and only then the user can install only what he needs.Therefore I am going to change the
pkgname=()array andprepare_*()function frompiper-voices, in order to introduce individual packages for each locale.