- $source = (new Task\GitClone($repo->clone_url, $release->tag_name))->run();
- $iterator = new SourceDir\Git($source);
- $meta = [
- "header" => sprintf("pharext v%s (c) Michael Wallner <mike@php.net>", \pharext\VERSION),
- "version" => \pharext\VERSION,
- "date" => date("Y-m-d"),
+ $hook = $this->github->checkRepoHook($repo);
+ $dir = (new Task\GitClone($repo->clone_url, $release->tag_name))->run();
+ if (!empty($hook->config->pecl)) {
+ $src = new SoureDir\Pecl($dir);
+ } else {
+ $src = new SourceDir\Git($dir);
+ }
+ $meta = Metadata::all() + [