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:
parent
31df3f01ea
commit
aa22b7f220
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue