Off-topic:
Maybe we should have a different repo for issues unrelated to pmbootstrap itself...
We should get apk support into PackageKit. PackageKit is used in combination with some other programs to offer a user-friendly front-end to package managers. An example of this is Plasma's "Discover": a software centre installed by default on the reference Plasma Mobile image which is creating a mobile layout. It would be awesome if we could use applications like these as the graphical way to install applications onto a postmarketOS system.
CC @awilfox from Alpine based Adélie Linux in case there is any interest in the Adélie community for this. Discover is available for the desktop as well.
PackageKit has been on our list for (literal) years. Haven't had time to actually mock it up.
This is actually a release blocker for Adélie 2.0, but that's two years away.
It'd be nice if I knew if libapk was actually going to be significantly overhauled (as hinted at by others in the Alpine community before), before I actually committed to writing such an interface. This interface would be quite dependent on the libapk ABI.
I haven't given it that deep of a look since I don't want to work on a C codebase (apk). However, it'd be easiest to use packagekit-glib for implementing this which probably isn't a dep we want to get into apk anyway, so maybe having some external addon-lib is the way to go over this anyway. I wouldn't mind writing that in D or Rust, but the former doesn't have support for platforms other than x86_64 in 3.11.
So, now that I'm done with exams I had time to give this a deeper look, seems like my previous answer was pretty uninformed.
PackageKit upstream told me that PackageKit is pretty dead and recommended writing frontend specific plugins (so e.g. one plugin for gnome-software like https://gitlab.gnome.org/GNOME/gnome-software/blob/master/plugins/) and KDE's thingie. That doesn't really seem optimal to me since that'll most likely mean we'll only support a few frontends, but oh well. I'll look into making a GNOME Software plugin next week :)