Building PECL packages for Debian GNU/Linux is as easy as:

$ apt-get install dh-make-php
$ dh-make-pecl --depends somelib --build-depends somelib-dev module
$ cd php-module-1.0.0 && dpkg-buildpackage -rfakeroot