This version properly works with the --variable argument.
the current URL has a bad https certificate.
does not have a configure file.
- Add a hash for the license file.
> This version properly works with the --variable argument.
What do you mean by "properly works with the --variable argument" ?
The pkg-config issue with variables being sometimes prefixed by the sysroot sometimes not simply cannot be fixed, because pkg-config has no idea whether the variable is meant to be used a build time (needs to be prefixed by the sysroot) or at run time (must NOT be prefixed by the sysroot).
>     the current URL has a bad https certificate.
>     does not have a configure file.
>   - Add a hash for the license file.
Of course, besides that the patch itself looks OK.