From 702daa987b2eb252706d840cd6cda0406f03bb9e Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sat, 27 Sep 2014 21:25:42 +0200 Subject: [PATCH] Make buildPackages.sh install dependencies --- tools/buildPackages.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/buildPackages.sh b/tools/buildPackages.sh index 80117b281..e028670e5 100755 --- a/tools/buildPackages.sh +++ b/tools/buildPackages.sh @@ -62,6 +62,16 @@ if [[ $OPT_APT = "true" ]]; then fi fi +# Get the requried dependencies if needed +if [[ $OPT_APT = "true" ]]; then + echo "Installing missing dependencies (if any)..." + if [[ $EUID -ne 0 && $OPT_SUDO = "true" ]]; then + sudo apt-get install qt5-qmake libopenal-dev libopencv-dev libopus-dev -y + else + apt-get install qt5-qmake libopenal-dev libopencv-dev libopus-dev -y + fi +fi + mkdir -p .packages cd .packages