{ "app-id": "org.dust3d.dust3d", "runtime": "org.kde.Platform", "runtime-version": "5.14", "sdk": "org.kde.Sdk", "command": "dust3d", "finish-args": [ "--share=ipc", "--socket=x11", "--socket=wayland", "--device=dri" ], "modules": [ { "name": "boost", "buildsystem": "simple", "build-commands": [ "./bootstrap.sh --prefix=/app", "./b2 -j $FLATPAK_BUILDER_N_JOBS", "./b2 install" ], "cleanup": [ "/lib/libboost_*.a" ], "sources": [ { "type": "archive", "url": "https://downloads.sourceforge.net/project/boost/boost/1.63.0/boost_1_63_0.tar.bz2", "sha256": "beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0" } ] }, { "name": "mpfr", "buildsystem": "autotools", "sources": [ { "type": "archive", "url": "https://www.mpfr.org/mpfr-current/mpfr-4.0.2.tar.gz", "sha256": "ae26cace63a498f07047a784cd3b0e4d010b44d2b193bab82af693de57a19a78" } ] }, { "name": "cgal", "build-options": { "WITH_CGAL_Qt5": "0", "WITH_CGAL_ImageIO": "0" }, "buildsystem": "cmake", "sources": [ { "type": "archive", "url": "https://github.com/CGAL/cgal/archive/releases/CGAL-4.14.3.tar.gz", "sha256": "05badca4025ec85012942533f5f1af6314ae10ce2f7effcc094b6844c4a54985" } ] }, { "name": "dust3d", "buildsystem": "simple", "build-commands": [ "mkdir -p thirdparty/instant-meshes/build", "cd thirdparty/instant-meshes/build && cmake ../", "cd thirdparty/instant-meshes/build && make -j $FLATPAK_BUILDER_N_JOBS", "qmake -config release", "make CXX=\"g++ -fext-numeric-literals\"", "install -Dm755 dust3d -t /app/bin", "install -Dm644 ./ci/${FLATPAK_ID}.appdata.xml -t /app/share/metainfo", "install -Dm644 ./ci/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop", "install -Dm644 ./ci/dust3d.png /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.png" ], "sources": [ { "type": "git", "url": "https://github.com/huxingyi/dust3d.git", "commit": "72832f72bca94537019d5530bbb28ac33f5c1673" }, { "type": "patch", "path": "dust3d.pro.flatpak.patch" } ] } ] }