app-id: io.github.openenroth.openenroth runtime: org.freedesktop.Platform runtime-version: &runtime-version '25.08' sdk: org.freedesktop.Sdk command: io.github.openenroth.openenroth.sh finish-args: # hardware 3D and controller access - --device=all # X11 + XShm access - --share=ipc - --socket=x11 # Audio - --socket=pulseaudio cleanup-commands: - mkdir -p ${FLATPAK_DEST}/lib/ffmpeg sdk-extensions: - org.freedesktop.Sdk.Extension.llvm20 add-extensions: org.freedesktop.Platform.ffmpeg-full: directory: lib/ffmpeg add-ld-path: . version: *runtime-version no-autodownload: false autodelete: false build-options: build-args: - --share=network strip: true no-debuginfo: true cleanup: - '*.a' - '*.la' - /include - /lib/cmake - /lib/pkgconfig - /share/man modules: - name: libdwarf buildsystem: cmake-ninja sources: - type: archive url: https://api.github.com/repos/davea42/libdwarf-code/tarball/v2.3.2 dest-filename: libdwarf.tar.gz sha256: 57005ec4f16696a44b20b7a7727fdc1d935dde532cfcd71bf323517251dced58 x-checker-data: type: json url: https://api.github.com/repos/davea42/libdwarf-code/releases/latest version-query: .tag_name | sub("^v"; "") url-query: .tarball_url cleanup: - /bin/dwarfdump - /share/dwarfdump - name: openenroth buildsystem: cmake-ninja builddir: true build-options: append-path: /usr/lib/sdk/llvm20/bin prepend-ld-library-path: /usr/lib/sdk/llvm20/lib config-opts: - -DOE_BUILD_TESTS=OFF - -DOE_BUILD_TOOLS=OFF - -DOE_CHECK_STYLE=OFF - -DOE_CHECK_LUA_STYLE=OFF - -DOE_USE_PREBUILT_DEPENDENCIES=OFF - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_LINKER=lld # - -DCMAKE_C_COMPILER=clang # - -DCMAKE_CXX_COMPILER=clang++ sources: - type: git url: https://github.com/OpenEnroth/OpenEnroth.git commit: aee554e4aeb63d57ae73930f212eb44f2adb05a8 x-checker-data: type: json url: https://api.github.com/repos/openenroth/openenroth/tags commit-query: .[] | select(.name == "nightly") | .commit.sha - type: file path: io.github.openenroth.openenroth.metainfo.xml post-install: - install -Dm755 src/Bin/OpenEnroth/OpenEnroth /app/bin/OpenEnroth # launcher script - install -Dm755 ../distribution/linux/flatpak/${FLATPAK_ID}.sh /app/bin/${FLATPAK_ID}.sh # Icon - install -Dm644 ../distribution/linux/${FLATPAK_ID}.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png # metainfo - install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml # desktop file - install -Dm644 ../distribution/linux/${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop - desktop-file-edit --set-key=Exec --set-value="${FLATPAK_ID}.sh" /app/share/applications/${FLATPAK_ID}.desktop