How to create a PKBUILD from a .deb file?

Here’s a couple of examples, one of my pkgbuilds and one that I revisioned yesterday