Fix "Use of bundled libzip is deprecated and will be removed"

pull/24/head
Michele Locati 2019-07-31 15:13:18 +02:00
parent dece414ae3
commit e65d33fa14
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 10 additions and 1 deletions

View File

@ -257,7 +257,7 @@ getRequiredAptPackages () {
getRequiredAptPackages_result="${getRequiredAptPackages_result} libyaml-dev" getRequiredAptPackages_result="${getRequiredAptPackages_result} libyaml-dev"
;; ;;
zip) zip)
getRequiredAptPackages_result="${getRequiredAptPackages_result} libzip-dev" getRequiredAptPackages_result="${getRequiredAptPackages_result} cmake zlib1g-dev libbz2-dev libmbedtls-dev"
;; ;;
esac esac
done done
@ -374,6 +374,15 @@ installBundledModule () {
sybase_ct) sybase_ct)
docker-php-ext-configure sybase_ct --with-sybase-ct=/usr docker-php-ext-configure sybase_ct --with-sybase-ct=/usr
;; ;;
zip)
libZipSrc="$(getPackageSource https://libzip.org/download/libzip-1.5.2.tar.gz)"
mkdir "$libZipSrc/build"
cd "$libZipSrc/build"
cmake ..
make install
cd -
docker-php-ext-configure zip --with-libzip
;;
esac esac
docker-php-ext-install -j$(nproc) "${2}" docker-php-ext-install -j$(nproc) "${2}"
} }