diff --git a/desktop/toolkit/qt5/qt5-script/actions.py b/desktop/toolkit/qt5/qt5-script/actions.py
index fc0c00c8e1..2f8ae15d53 100644
--- a/desktop/toolkit/qt5/qt5-script/actions.py
+++ b/desktop/toolkit/qt5/qt5-script/actions.py
@@ -14,10 +14,10 @@ def setup():
qt5.configure()
def build():
- qt5.make()
+ qt5.make("docs")
def install():
- qt5.install("INSTALL_ROOT=%s" % get.installDIR())
+ qt5.install("INSTALL_ROOT=%s install_docs" % get.installDIR())
#I hope qtchooser will manage this issue
for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()):
diff --git a/desktop/toolkit/qt5/qt5-script/pspec.xml b/desktop/toolkit/qt5/qt5-script/pspec.xml
index d3d8cc377c..761a651025 100644
--- a/desktop/toolkit/qt5/qt5-script/pspec.xml
+++ b/desktop/toolkit/qt5/qt5-script/pspec.xml
@@ -45,6 +45,15 @@
/usr/include/qt5
+
+
+ qt5-docs
+
+ qt5-base
+
+
+ /usr/share/doc/qt5
+