Updated PKGBUILD.proto with check and package function