We covered how to bypass PFS protection and we've seen PFS Keys recently, and now developer maxton (Twitter) of the PlayStation 4 PFS extractor GameArchives has released MakePFS which is utility to build a PS4 PFS (PlayStation File System) image! 
Download: MakePFS-master.zip / GIT
To quote from the README.md: MakePFS
A utility to create PFS (Playstation File System) images.
Usage:
Options:

Download: MakePFS-master.zip / GIT
To quote from the README.md: MakePFS
A utility to create PFS (Playstation File System) images.
Usage:
Code:
makepfs -o pfs_image_name.dat -r /path/to/root/directory [-b BLOCKSIZE]
- -o filename : Sets the output filename for the image to filename.
- -r /path/to/root : Sets the directory used as the root of the filesystem.
- -b BLOCKSIZE : (Optional) Sets the blocksize of the PFS image. Default is 65536.