diff --git a/install-php-extensions b/install-php-extensions index cc0a7ef..54b3f0d 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1536,12 +1536,14 @@ installRemoteModule() { decimal) case "$DISTRO" in alpine) - installRemoteModule_src="$(getPackageSource https://codeload.github.com/bematech/libmpdec/tar.gz/master)" - cd -- "$installRemoteModule_src" - ./configure CFLAGS='-w' - make -j$(getProcessorCount) - make install - cd - >/dev/null + if ! test -f /usr/local/lib/libmpdec.so; then + installRemoteModule_src="$(getPackageSource https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.5.1.tar.gz)" + cd -- "$installRemoteModule_src" + ./configure --disable-cxx + make -j$(getProcessorCount) + make install + cd - >/dev/null + fi ;; esac ;;