From b1d802ef8a9ff1e1f37976343e2e343e97276264 Mon Sep 17 00:00:00 2001 From: Fred Cox Date: Thu, 16 Jun 2022 15:49:29 +0300 Subject: [PATCH] Add support for lz4 (#596) --- data/supported-extensions | 1 + install-php-extensions | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index 3636bfa..4f449e7 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -41,6 +41,7 @@ jsmin 5.5 5.6 7.0 7.1 7.2 7.3 7.4 json_post 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 ldap 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 luasandbox 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 +lz4 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 lzf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 mailparse 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 maxminddb 7.2 7.3 7.4 8.0 8.1 8.2 diff --git a/install-php-extensions b/install-php-extensions index 6b16ffb..12c7738 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -901,6 +901,14 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent liblua5.1-0" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile liblua5.1-0-dev" ;; + lz4@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent lz4-libs" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile lz4-dev" + ;; + lz4@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent liblz4-1" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile liblz4-dev" + ;; maxminddb@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmaxminddb" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmaxminddb-dev" @@ -2676,6 +2684,20 @@ installRemoteModule() { fi fi ;; + lz4) + if test -z "$installRemoteModule_path"; then + if test -z "$installRemoteModule_version"; then + installRemoteModule_version=0.4.3 + fi + installRemoteModule_src="$(getPackageSource https://github.com/kjdev/php-ext-lz4/archive/refs/tags/$installRemoteModule_version.tar.gz)" + cd "$installRemoteModule_src" + phpize + ./configure --with-lz4-includedir=/usr + make -j$(getProcessorCount) install + cd - >/dev/null + installRemoteModule_manuallyInstalled=1 + fi + ;; lzf) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -lt 702; then