Rename dependencies directory
[novacoin.git] / dependencies / qt / setup.sh
diff --git a/dependencies/qt/setup.sh b/dependencies/qt/setup.sh
new file mode 100755 (executable)
index 0000000..0e3b6a9
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+ROOT=$(pwd)
+
+if [[ ! $(which git) ]]; then
+    echo "git is not installed"
+    exit -1
+fi
+
+git clone -b 5.15.2 https://github.com/qt/qtbase.git ${ROOT}/qtbase
+git clone -b 5.15.2 https://github.com/qt/qttools.git ${ROOT}/qttools
+git clone -b 5.15.2 https://github.com/qt/qttranslations.git ${ROOT}/qttranslations
+git clone -b 5.15.2 https://github.com/qt/qtdeclarative.git ${ROOT}/qtdeclarative
+
+cd ${ROOT}/qtbase
+patch -s -p1 < ${ROOT}/stack_protector.patch
+cd ${ROOT}