Hi there too, I'm sorry, but it seems you've reinvented the wheel. Please have a look at the package dh-make-php. It can build debian packages from pear and pecl. Best regards, Thomas Koch, http://www.koch.ro