use git instead of patching deps.sh

This commit is contained in:
DubbleClick 2025-07-22 10:36:40 +07:00
parent 6d60000952
commit 2ebd230a08
2 changed files with 8 additions and 14 deletions

View File

@ -558,8 +558,14 @@
}
},
"libjxl": {
"type": "ghtar",
"repo": "libjxl/libjxl",
"type": "git",
"url": "https://github.com/libjxl/libjxl",
"rev": "main",
"submodules": [
"third_party/highway",
"third_party/sjpeg",
"third_party/skcms"
],
"license": {
"type": "file",
"path": "LICENSE"

View File

@ -10,18 +10,6 @@ use SPC\util\SPCTarget;
trait libjxl
{
public function patchBeforeBuild(): bool
{
FileSystem::replaceFileStr(
$this->source_dir . '/deps.sh',
['return 0', 'download_github third_party/brotli', 'download_github third_party/zlib', 'download_github third_party/libpng'],
['# return 0', '# download_github third_party/brotli', '# download_github third_party/zlib', '# download_github third_party/libpng'],
);
shell()->cd($this->source_dir)
->exec('./deps.sh');
return true;
}
protected function build(): void
{
UnixCMakeExecutor::create($this)