I am so sorry. But it is indeed a little bit wired and perhaps my findings will help the next one. At first: It works now without any changes necessary from your side.
The "problem" was: I have all gpg set up. But missed to define a default-key via ~/.gnupg/gpg.conf . I once imported for testing a foreign public key and this got on first place of my list. "Bad luck".
And makepkg --sign
uses the first key in this list which was the foreign public key. And obviously I cannot sign a package without private key.
Once "my" keys are defined as default it works.
And b.t.w. I allready got my .sig-file by creating it outside of makepkg following ArchWiki, makepkg, 3.9
Pinned Comments
aryklein commented on 2023-01-28 18:19 (UTC)
Import the necessary GnuPG key. More information here: https://developers.yubico.com/Software_Projects/Software_Signing.html