build on systems with libwebkit2gtk-4.1 (#5135)

Linux distros started removing libwebkit2gtk-4.0 libriry from their
repos. Ubuntu Noble (24.04) is one of them.

Modify debian/ubuntu deps to install libwebkit2gtk-4.1 if
no libwebkit2gtk-4.0 available
This commit is contained in:
Dima Buzdyk 2024-06-29 09:15:48 +05:00 committed by GitHub
parent 31df3f01ea
commit aa22b7f220
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,6 @@ REQUIRED_DEV_PACKAGES=(
libssl-dev
libtool
libudev-dev
libwebkit2gtk-4.0-dev
ninja-build
texinfo
wget
@ -38,6 +37,16 @@ then
then
REQUIRED_DEV_PACKAGES+=(libssl-dev libcurl4-openssl-dev)
fi
# check which version of libwebkit2gtk is available
apt show --quiet libwebkit2gtk-4.0-dev >/dev/null 2>&1
if [ "$?" == "0" ]
then
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.0-dev)
else
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.1-dev)
fi
# TODO: optimize this by checking which, if any, packages are already installed
# install them all at once