[pacman-dev] [PATCH 3/6] makepkg: devel_check(): consolidate common code