Install additional packages on Travis CI

Install packages for gstreamer, webkit, opengl and libsecret.
First check if the package is available.
This commit is contained in:
Maarten Bent 2018-11-04 22:00:32 +01:00
parent 9554cb49d8
commit de4eecc575

View File

@ -21,7 +21,18 @@ case $(uname -s) in
*--with-qt*) libtoolkit_dev='qtdeclarative5-dev' ;;
esac
$SUDO apt-get install -y $libgtk_dev $libtoolkit_dev libnotify-dev
pgk_check="libgstreamermm-1.0-dev libgstreamermm-0.10-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev \
libwebkitgtk-dev libglu1-mesa-dev libsecret-1-dev libnotify-dev"
for pkg in $pgk_check; do
if $(apt-cache pkgnames | grep -q $pkg) ; then
pkg_install="$pkg_install $pkg"
fi
done
$SUDO apt-get install -y $libgtk_dev $libtoolkit_dev $pkg_install
fi
;;