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 ?
Merge pull request #1 from 1ace/master

Many thanks to @1ace for these valid patches.