diff --git a/data/supported-extensions b/data/supported-extensions index 6bacdfb..e45f42a 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -65,6 +65,7 @@ sybase_ct 5.5 5.6 sysvmsg 5.5 5.6 7.0 7.1 7.2 7.3 7.4 sysvsem 5.5 5.6 7.0 7.1 7.2 7.3 7.4 sysvshm 5.5 5.6 7.0 7.1 7.2 7.3 7.4 +tdlib 7.3 7.4 tidy 5.5 5.6 7.0 7.1 7.2 7.3 7.4 timezonedb 5.5 5.6 7.0 7.1 7.2 7.3 7.4 uopz 5.5 5.6 7.0 7.1 7.2 7.3 7.4 diff --git a/install-php-extensions b/install-php-extensions index 64ab246..a25cc92 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -579,6 +579,13 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libct4" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev" ;; + tdlib@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++ $buildRequiredPackageLists_libssl" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile git cmake gperf zlib-dev libressl-dev linux-headers readline-dev" + ;; + tdlib@debian) + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile git cmake gperf zlib1g-dev $buildRequiredPackageLists_libssldev" + ;; tidy@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent tidyhtml-libs" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile tidyhtml-dev" @@ -1227,6 +1234,23 @@ installPECLModule() { installPECLModule_actual='https://pecl.php.net/get/ssh2' fi ;; + tdlib) + if ! test -f /usr/lib/libphpcpp.so || ! test -f /usr/include/phpcpp.h; then + cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/444d1f90cf6b7f3cb5178fa0d0b5ab441b0389d0)" + make -j$(nproc) + make install + cd - >/dev/null + fi + installPECLModule_tmp="$(mktemp -p /tmp/src -d)" + git clone --depth=1 --recurse-submodules https://github.com/yaroslavche/phptdlib.git "$installPECLModule_tmp" + mkdir "$installPECLModule_tmp/build" + cd "$installPECLModule_tmp/build" + cmake -D USE_SHARED_PHPCPP:BOOL=ON .. + make + make install + rm "$PHP_INI_DIR/conf.d/tdlib.ini" + installPECLModule_manuallyInstalled=1 + ;; uuid) if test $1 -le 506; then installPECLModule_actual="$2-1.0.5"