I confirm that Soundflower can be installed in OSX Mojave following the method described above by Luis Sequeira1
It worked for me but only after four attempts, persistence pays off.
"double-click the pkg file it will not let you run, saying it is from an "unidentified developer". Instead,
control-click and choose Open. You will see a window like the one below. If you click Open, it should proceed" ... plus
I would recommend also doing the following:
Open system Preferences / security & privacy
you may see a warning saying - "an attempt to install 'soundflower' by 3rd party developer was blocked"
click on (install anyway)
and in the same window you may also see:
"some system software was blocked from loading" click (Allow)
A list of blocked developer names will probably include "M INGLES" so tick the check box to allow installation
Run the installer again
if it still fails
Run the installer again
Apple corporation are rightly concerned about unscrupulous copying of copyright content, particularly popular music,
so my guess is they would make it difficult to install the tools for the job, but there are some legitimate reasons for capturing system audio, so the obstruction is merely a deterrent, not an outright ban.