There are different methods used for each vaccine. I just explained this one anti HPV vaccine and what was done to stimulate immunity. This depiction isnt always the case for other vaccines. Some do use attenuated whole viruses.
This vaccine should not involve any pigs in the production process.