Just a tip:
An inconvenience with the original pkg-config is that command substitutions like cc $(pkg-config --cflags) … don't work when pasted into fish:
fish-shell/fish-shell#982
This is because fish only splits command output by lines. Which means that printing items linewise is the way to be fish friendly. Maybe there are counterarguments I haven't thought of, but this is something that comes to my mind if I had the opportunity to redo it.
Just a tip:
An inconvenience with the original pkg-config is that command substitutions like
cc $(pkg-config --cflags) …don't work when pasted into fish:fish-shell/fish-shell#982
This is because fish only splits command output by lines. Which means that printing items linewise is the way to be fish friendly. Maybe there are counterarguments I haven't thought of, but this is something that comes to my mind if I had the opportunity to redo it.