Add build function to PKGBUILD.