2025-03-05 11:35:03 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
|
|
2025-06-09 19:32:31 +08:00
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
2025-03-05 11:35:03 +01:00
|
|
|
|
|
|
|
|
trait attr
|
|
|
|
|
{
|
|
|
|
|
protected function build(): void
|
|
|
|
|
{
|
2025-06-09 19:32:31 +08:00
|
|
|
UnixAutoconfExecutor::create($this)
|
2025-06-26 16:43:37 +07:00
|
|
|
->appendEnv([
|
|
|
|
|
'CFLAGS' => '-Wno-int-conversion -Wno-implicit-function-declaration',
|
|
|
|
|
])
|
2025-06-09 10:24:06 +08:00
|
|
|
->exec('libtoolize --force --copy')
|
|
|
|
|
->exec('./autogen.sh || autoreconf -if')
|
2025-06-09 19:32:31 +08:00
|
|
|
->configure('--disable-nls')
|
|
|
|
|
->make();
|
2025-03-05 11:35:03 +01:00
|
|
|
$this->patchPkgconfPrefix(['libattr.pc'], PKGCONF_PATCH_PREFIX);
|
|
|
|
|
}
|
|
|
|
|
}
|