It's FOSS shows you how to create a PKGBUILD to make packages for Arch Linux.
Creating a PKGBUILD to Make Packages for Arch Linux
How do you go from a PKGBUILD to an installable package in Arch Linux? What exactly is going on between the two and how can you make them for your own packages?
Creating a PKGBUILD to Make Packages for Arch Linux - It's FOSS