20 lines
519 B
PHP
Raw Normal View History

2023-05-12 09:47:43 +00:00
<?php
declare(strict_types=1);
namespace SPC\builder\unix\library;
trait libsodium
{
protected function build(): void
2023-05-12 09:47:43 +00:00
{
2025-06-09 14:48:05 +07:00
shell()->cd($this->source_dir)->initializeEnv($this)
->exec('./configure --with-pic --enable-static --disable-shared --prefix=')
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
$this->patchPkgconfPrefix(['libsodium.pc'], PKGCONF_PATCH_PREFIX);
2023-05-12 09:47:43 +00:00
}
}