grep for content-disposition field should be case-insensitive, else you would get:
tar: /tmp/pecl-build: Cannot open: No such file or directory
tar: Error is not recoverable: exiting no
Also fixed some typos and improved bash style a bit.
Typos + how to install from my repository.
Skip tests by default.