Adding EULA to Homebrew Installer (.pkg macOs)

Hi,
I have developed a macOS installer (.pkg). I want to add a EULA so that once this is being installed with homebrew, it would display this EULA and will ask user’s consent. I looked for an answer but I couldn’t find one.

That’s not possible as far as I know. The best you can do is tell users they’re now accepting the EULA