mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
18 lines
513 B
PHP
18 lines
513 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\unix\library;
|
||
|
|
|
||
|
|
trait bzip2
|
||
|
|
{
|
||
|
|
protected function build(): void
|
||
|
|
{
|
||
|
|
shell()->cd($this->source_dir)
|
||
|
|
->exec("make {$this->builder->configure_env} PREFIX='" . BUILD_ROOT_PATH . "' clean")
|
||
|
|
->exec("make -j{$this->builder->concurrency} {$this->builder->configure_env} PREFIX='" . BUILD_ROOT_PATH . "' libbz2.a")
|
||
|
|
->exec('cp libbz2.a ' . BUILD_LIB_PATH)
|
||
|
|
->exec('cp bzlib.h ' . BUILD_INCLUDE_PATH);
|
||
|
|
}
|
||
|
|
}
|