Installing files to ~/Library

I’m trying to create a formula for the native messaging host used by the “browserpass” FF/Chrome plugin. Part of the installation process involves copying a JSON file to a location like ~/Library/Application Support/Mozilla/NativeMessagingHosts/, but the Cookbook is silent on how to do something like this.

You cannot install files outside HOMEBREW_PREFIX; the sandbox will forbid it.

That’s a shame, but it makes sense. Is there a common workaround for situations like this? Like installing a helper script that completes the installation, and instructing the user to run it?

Yep, generally just put something in the caveats or a script to run in bin.