Automatically running pre and post scripts is absolutely insane.
That mechanism could easily be used to achieve the same goal, even if there was no explicit "post-script" mechanism.
The modern hipster-language equivalent would probably be to make the package manager depend on the presence of Docker/rkt/systemd, and use it to pull down a dev-env container and build the native bindings in that.
Afterwards the sub-directory in /Programs can basically be turned into an archive for future installs.
For example "lowdash" instead of lodash.