I don't even need pkgin for this. I "just" need to parse pkg_summary.gz, do some curling, and extraction and whatnot.
Doesn't seem too bad, and I don't need all of the summary either.
So, what if I made a small tool, in Rust, that I could point to a pkg_summary (or .gz, or .bz2, depending on how I feel), tell it the package I want, and it would download the package, all its dependencies, into the store. To make my life easier, I'd download them to /sexshop/toys/binaries, yadayada.
But I'm getting ahead of myself again! Lets do small steps.
- Parse the currently relevant bits of
pkg_summary. - Figure out the dependencies (recursively)
- Download all the things (computing their hashes in the process)
And then I'll go from there.
I think the hardest part about my mini-initd will be
fsck. Who would have thought it would be fucking hard. It's not like it's in the name.