1. Download the pacbrew-pacman from following location and install.
https://github.com/PacBrew/pacbrew-pacman/releases
2. Run following cmds
pacbrew-pacman -Sy
pacbrew-pacman -S ps4-openorbis ps4-openorbis-portlibs
chmod guo+x /opt/pacbrew/ps4/openorbis/ps4vars.sh
source /opt/pacbrew/ps4/openorbis/ps4vars.sh
cp build_rules.mk /opt/pacbrew/ps4/openorbis/
make install