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