The only requirement is a Pascal Compiler.
Go to the link mentioned below :
https://www.freepascal.org/
and download a setup (.exe) file according to your architecture. Install it, setup your PATH, and you are good to go.
Use the following command :
sudo apt-get install fp-compiler
MIT License