+ $meta = array_merge($this->metadata(), [
+ "date" => date("Y-m-d"),
+ "name" => $this->args->name,
+ "release" => $this->args->release,
+ "license" => @file_get_contents(current(glob($this->source->getBaseDir()."/LICENSE*"))),
+ "stub" => "pharext_installer.php",
+ "type" => $this->args->zend ? "zend_extension" : "extension",
+ ]);
+ $file = (new Task\PharBuild($this->source, $meta))->run($this->verbosity());
+ } catch (\Exception $e) {
+ $this->error("%s\n", $e->getMessage());
+ exit(self::EBUILD);
+ }