renamed build() to package() - you're creating the package in there, and
"Using a PKGBUILD without a package() function is deprecated." anyways
why run grep and discard its exit code, then ask the shell what it was ?