After testing package functionality check it for errors using namcap:
$ namcap PKGBUILD $ namcap <package file name>.pkg.tar.xz