Adding check() function to PKGBUILD.