From de4eecc575b054e53005f5f51f2be53d5479c6be Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 4 Nov 2018 22:00:32 +0100 Subject: [PATCH] Install additional packages on Travis CI Install packages for gstreamer, webkit, opengl and libsecret. First check if the package is available. --- build/tools/before_install.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/tools/before_install.sh b/build/tools/before_install.sh index acd36027dc..40b72ee7d7 100755 --- a/build/tools/before_install.sh +++ b/build/tools/before_install.sh @@ -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 ;;