Create a pkginfo(4) file using the man page.
Create a prototype(4) file using the man page.
Use the pkgproto(1) command to generate a prototype(4) file template.