Run all subpackage functions and prepare the dirs first and create the
package itself later on. This will make it possible to automatically trace
the dependencies.
Also, speed up the detection of which makedeps are installed and which needs
to be built/installed. this requires apk-tools_pre11.