How to fix pgpme not found on pacman

to fix pgpme not found

try find the file on /usr/lib/
then do symlink the actual file to filename that pacman looking for
for example :
cd /usr/lib/
sudo ln -s libgpgme.so.45.0.0 libgpgme.so.11

when pgpme not found in /usr/lib/
download the binary from here

extract
unzstd gpgme-2.0.0-1-x86_64.pkg.tar.zst
tar -xvf gpgme-2.0.0-1-x86_64.pkg.tar
rsync -av usr/ /usr/
then do symlink if pacman still cannot found the pgpme
sudo ln -s libgpgme.so.45.0.0 libgpgme.so.11

symlink is only temporary recover to able to fix the pacman,
the correct one you must download the gpgme with version same as pacman required

Huh?

Why would this be necessary?

Thanks, the symlink helped a ton. pacman broke after I installed something else pgpme related (I don’t think I did a full upgrade) and this fixed it. I’m not great at troubleshooting this kind of thing so I’ll keep symlinks in mind for the future.