Alright! I knew it was possible with pkg_info, but to be honest I didn't really bother to figure out exactly how. Originally, I did this to use on my own system, and as I use pkgin, that was the closest solution.
I'm considering a PR to WIP. If I go ahead with it, I will submit an issue to upstream ufetch first. I do have a github account, but ufetch is hosted on gitlab.