Setup libwebp-dev with PHP8 on linux

This commit is contained in:
Shivam Mathur 2020-05-18 22:27:18 +05:30
parent 00b0d694d0
commit 062567eeb1
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -193,7 +193,7 @@ add_devtools() {
# Function to setup the nightly build from master branch # Function to setup the nightly build from master branch
setup_master() { setup_master() {
update_ppa && $apt_install libzip-dev update_ppa && $apt_install libzip-dev libwebp-dev >/dev/null 2>&1
tar_file=php_"$version"%2Bubuntu"$(lsb_release -r -s)".tar.xz tar_file=php_"$version"%2Bubuntu"$(lsb_release -r -s)".tar.xz
install_dir=~/php/"$version" install_dir=~/php/"$version"
bintray_url=https://dl.bintray.com/shivammathur/php/"$tar_file" bintray_url=https://dl.bintray.com/shivammathur/php/"$tar_file"
@ -203,7 +203,7 @@ setup_master() {
for tool_path in "$install_dir"/bin/*; do for tool_path in "$install_dir"/bin/*; do
tool=$(basename "$tool_path") tool=$(basename "$tool_path")
sudo cp "$tool_path" /usr/bin/"$tool$version" sudo cp "$tool_path" /usr/bin/"$tool$version"
sudo update-alternatives --install /usr/bin/"$tool" "$tool" /usr/bin/"$tool$version" 50 sudo update-alternatives --install /usr/bin/"$tool" "$tool" /usr/bin/"$tool$version" 50 >/dev/null 2>&1
done done
sudo ln -sf "$install_dir"/etc/php.ini /etc/php.ini sudo ln -sf "$install_dir"/etc/php.ini /etc/php.ini
} }