check package metadata
Add the same name and version checks makepkg does to alpm. Most of these are essential for alpm to function correctly. The package name character check is also to avoid confusion with shell syntax or option parsing (e.g. a package named --foo).