I am trying to create a new brew formula of the package PCP for macOS. But it needs a variable $PCP_DIR with the location of the installed directory after installation. Is there a way to declare the variable in the formula itself or create symlinks for the required directory?
For example, I need “sudo ln -s /usr/local/Cellar/pcp/4.1.1/etc/pcp.env /etc/pcp.env” this symlink to be created. How should i incorporate this in the formula?