diff --git a/config/source.json b/config/source.json index 76c656f6..6bdb8f8b 100644 --- a/config/source.json +++ b/config/source.json @@ -29,6 +29,7 @@ "brotli": { "type": "ghtar", "repo": "google/brotli", + "provide-pre-built": true, "license": { "type": "file", "path": "LICENSE" @@ -253,6 +254,7 @@ "type": "git", "rev": "master", "url": "https://github.com/static-php/phc-winner-argon2", + "provide-pre-built": true, "license": { "type": "file", "path": "LICENSE" @@ -261,6 +263,7 @@ "libavif": { "type": "ghtar", "repo": "AOMediaCodec/libavif", + "provide-pre-built": true, "license": { "type": "file", "path": "LICENSE" @@ -314,6 +317,7 @@ "type": "filelist", "url": "https://ftp.gnu.org/gnu/libiconv/", "regex": "/href=\"(?libiconv-(?[^\"]+)\\.tar\\.gz)\"/", + "provide-pre-built": true, "license": { "type": "file", "path": "COPYING" @@ -360,6 +364,7 @@ "type": "git", "url": "https://github.com/glennrp/libpng.git", "rev": "libpng16", + "provide-pre-built": true, "license": { "type": "file", "path": "LICENSE" @@ -398,6 +403,7 @@ "type": "filelist", "url": "https://download.osgeo.org/libtiff/", "regex": "/href=\"(?tiff-(?[^\"]+)\\.tar\\.xz)\"/", + "provide-pre-built": true, "license": { "type": "file", "path": "LICENSE.md" diff --git a/src/SPC/builder/unix/library/brotli.php b/src/SPC/builder/unix/library/brotli.php index e84c6577..fddcfbae 100644 --- a/src/SPC/builder/unix/library/brotli.php +++ b/src/SPC/builder/unix/library/brotli.php @@ -34,5 +34,9 @@ trait brotli unlink(BUILD_ROOT_PATH . '/lib/' . $filename); } } + + if (file_exists(BUILD_BIN_PATH . '/brotli')) { + unlink(BUILD_BIN_PATH . '/brotli'); + } } } diff --git a/src/SPC/builder/unix/library/libargon2.php b/src/SPC/builder/unix/library/libargon2.php index 8cdd1e63..e91b71f0 100644 --- a/src/SPC/builder/unix/library/libargon2.php +++ b/src/SPC/builder/unix/library/libargon2.php @@ -23,5 +23,9 @@ trait libargon2 unlink(BUILD_ROOT_PATH . '/lib/' . $filename); } } + + if (file_exists(BUILD_BIN_PATH . '/argon2')) { + unlink(BUILD_BIN_PATH . '/argon2'); + } } } diff --git a/src/SPC/builder/unix/library/libiconv.php b/src/SPC/builder/unix/library/libiconv.php index 5096e724..fd6b5f8e 100644 --- a/src/SPC/builder/unix/library/libiconv.php +++ b/src/SPC/builder/unix/library/libiconv.php @@ -20,5 +20,9 @@ trait libiconv ->exec('make clean') ->exec("make -j{$this->builder->concurrency}") ->exec('make install DESTDIR=' . $destdir); + + if (file_exists(BUILD_BIN_PATH . '/iconv')) { + unlink(BUILD_BIN_PATH . '/iconv'); + } } }