2023-05-17 07:36:23 +00:00

19 lines
449 B
PHP

<?php
declare(strict_types=1);
namespace SPC\builder\unix\library;
trait libsodium
{
protected function build()
{
$root = BUILD_ROOT_PATH;
shell()->cd($this->source_dir)
->exec("{$this->builder->configure_env} ./configure --enable-static --disable-shared --prefix={$root}")
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec('make install');
}
}