diff --git a/scripts/createDevPackage.py b/scripts/createDevPackage.py
index f9b7a3f0e3c04d064322f8078ba386b5af1d6129..05577438f98b166b673c0293761649f9e84282e1 100755
--- a/scripts/createDevPackage.py
+++ b/scripts/createDevPackage.py
@@ -57,17 +57,16 @@ def parse_arguments():
 
 source_include_patterns = [
     # directories
-    r"^scripts/.*$",     # everything under scripts/
-    r"^doc/.*$",         # everything under doc/
+    r"^(?!(share|tests)/.*$)(.*/)?$",                     # look into all directories except under share/ and tests/
     r"^share/(qtcreator/(qml/(qmlpuppet/(.*/)?)?)?)?$", # for shared headers for qt quick designer plugins
-    r"^src/(.*/)?$",     # all directories under src/
-    r"^plugins/(.*/)?$", # all directories under plugins/ (if this is run on extra plugin repositories)
     # files
     r"^HACKING$",
     r"^LICENSE.*$",
     r"^README.md$",
-    r"^.*\.pri$",
-    r"^.*\.h$",
+    r"^scripts/.*$", # include everything under scripts/
+    r"^doc/.*$",     # include everything under doc/
+    r"^.*\.pri$",    # .pri files in all directories that are looked into
+    r"^.*\.h$",      # .h files in all directories that are looked into
 ]
 
 build_include_patterns = [