packaging: work around AUR parser in PKGBUILD templates.
packaging/package.sh: check if packaging type has been passed.