mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 23:35:37 +08:00
Add liblz4, sqlite for pre-built libs
This commit is contained in:
@@ -341,6 +341,7 @@
|
|||||||
"repo": "lz4/lz4",
|
"repo": "lz4/lz4",
|
||||||
"match": "lz4-.+\\.tar\\.gz",
|
"match": "lz4-.+\\.tar\\.gz",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
|
"provide-pre-built": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
@@ -656,6 +657,7 @@
|
|||||||
"sqlite": {
|
"sqlite": {
|
||||||
"type": "url",
|
"type": "url",
|
||||||
"url": "https://www.sqlite.org/2023/sqlite-autoconf-3430200.tar.gz",
|
"url": "https://www.sqlite.org/2023/sqlite-autoconf-3430200.tar.gz",
|
||||||
|
"provide-pre-built": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"text": "The author disclaims copyright to this source code. In place of\na legal notice, here is a blessing:\n\n * May you do good and not evil.\n * May you find forgiveness for yourself and forgive others.\n * May you share freely, never taking more than you give."
|
"text": "The author disclaims copyright to this source code. In place of\na legal notice, here is a blessing:\n\n * May you do good and not evil.\n * May you find forgiveness for yourself and forgive others.\n * May you share freely, never taking more than you give."
|
||||||
|
|||||||
@@ -8,7 +8,14 @@ use SPC\store\FileSystem;
|
|||||||
|
|
||||||
trait liblz4
|
trait liblz4
|
||||||
{
|
{
|
||||||
protected function build()
|
public function patchBeforeBuild(): bool
|
||||||
|
{
|
||||||
|
// disable executables
|
||||||
|
FileSystem::replaceFileStr($this->source_dir . '/programs/Makefile', 'install: lz4', "install: lz4\n\ninstallewfwef: lz4");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function build(): void
|
||||||
{
|
{
|
||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
->exec("make PREFIX='' clean")
|
->exec("make PREFIX='' clean")
|
||||||
|
|||||||
Reference in New Issue
Block a user