Index: linux/flatpak/net.orxonox.Orxonox.json
===================================================================
--- linux/flatpak/net.orxonox.Orxonox.json	(revision 151)
+++ linux/flatpak/net.orxonox.Orxonox.json	(revision 152)
@@ -4,5 +4,6 @@
     "runtime-version": "18.08",
     "sdk": "org.freedesktop.Sdk",
-    "command": "run",
+    "command": "/app/games/orxonox",
+    "cleanup": [ "/lib/*.a" ],
     "modules": [
         {
@@ -30,5 +31,4 @@
         {
             "name": "boost",
-            "cleanup": [ "/lib/libboost_*.a" ],
             "sources": [
                 {
@@ -39,5 +39,5 @@
                 {
                     "type": "file",
-                    "path": "boost-configure",
+                    "path": "res/boost-configure",
                     "dest-filename": "configure"
                 }
@@ -50,5 +50,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/libXmu-1.1.1.tar.gz"
+                    "path": "deps/libXmu-1.1.1.tar.gz",
+                    "sha256": "e7f7f227c8f430de81984d9725113ecd8994d07de372abf334b1c3dec31ceaf1"
                 }
             ]
@@ -60,5 +61,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/libXaw-1.0.11.tar.gz"
+                    "path": "deps/libXaw-1.0.11.tar.gz",
+                    "sha256": "ef4dd840b2896401c75d68cf0296a7243b5953f22261f8e8c4a92b53e771fc90"
                 }
             ]
@@ -71,5 +73,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/freetype-2.4.0.tar.gz"
+                    "path": "deps/freetype-2.4.0.tar.gz",
+                    "sha256": "7d7cce582e83a9b35edf14a39bddb5303d0c3796865466e3302b6d85663c79a7"
                 }
             ]
@@ -85,5 +88,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/FreeImage3180-modified.tar.xz"
+                    "path": "deps/FreeImage3180-modified.tar.xz",
+                    "sha256": "2784dd06129f7d56b4d49ea5694d03edee0fdc2432e6d08c671f5b55127d31fa"
                 }
             ]
@@ -95,5 +99,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/glu.tar.xz"
+                    "path": "deps/glu.tar.xz",
+                    "sha256": "6d9bfdddf21d873f0ae460375f0904aad2f84197b259ea070ca56d9e796713f8"
                 }
             ]
@@ -105,9 +110,10 @@
                 {
                     "type": "archive",
-                    "path": "deps/ogre-1.9.tar.xz"
+                    "path": "deps/ogre-1.9.tar.xz",
+                    "sha256": "2fede124550fe3cb996e1e3efb46392d22f4346b826c1e76e6a1f2ecb476d485"
                 },
                 {
                     "type": "patch",
-                    "path": "ogre1.9-gcc5.2.patch"
+                    "path": "res/ogre1.9-gcc5.2.patch"
                 }
             ]
@@ -116,9 +122,9 @@
             "name": "lua",
             "buildsystem": "cmake",
-            "config-opts": [],
-            "sources": [
-                {
-                    "type": "archive",
-                    "path": "deps/lua-5.1.5.tar.gz"
+            "sources": [
+                {
+                    "type": "archive",
+                    "path": "deps/lua-5.1.5.tar.gz",
+                    "sha256": "612b024b1678cbb39a880a8b2c611b40fb267ba19c7d7073953289d046f1e99f"
                 }
             ]
@@ -130,5 +136,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/toluapp-1.0.93.tar.gz"
+                    "path": "deps/toluapp-1.0.93.tar.gz",
+                    "sha256": "0a1ff87cb74e7531aec57e2a7cfdf282116647dea3b46223e3cc7c362b55b5bb"
                 }
             ]
@@ -151,5 +158,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/tinyxml_2_6_2-cmake.tar.xz"
+                    "path": "deps/tinyxml_2_6_2-cmake.tar.xz",
+                    "sha256": "ec877dfc2d9b27a60b10b3686d894d6a14018de870b651dee0f08485231582f4"
                 }
             ]
@@ -169,5 +177,6 @@
                 {
                     "type": "archive",
-                    "path": "deps/tcl8.6.8-src.tar.gz"
+                    "path": "deps/tcl8.6.8-src.tar.gz",
+                    "sha256": "c43cb0c1518ce42b00e7c8f6eaddd5195c53a98f94adc717234a65cbcfd3f96a"
                 }
             ]
@@ -178,4 +187,9 @@
             "builddir": true,
             "subdir": "code",
+            "build-options" : {
+                "env": {
+                    "LIBRARY_PATH":"/app/lib"
+                }
+            },
             "sources": [
                 {
