The package uses dpatch to apply patches on top of the upstream source. See /usr/share/doc/dpatch/README.source.gz.