If you are strictly attempting to use a PKG file on a jailbroken PS4 with Linux, the workflow is as follows:
Directly stated, you cannot natively convert a PS3 game into a PS4 PKG (Package) file to install and play directly on a PlayStation 4.
On your PS4, go to the web browser and load your jailbreak host (e.g., ).