app-id: io.github.lunarmeadow.barrett runtime: org.freedesktop.Platform runtime-version: &runtime-version '25.08' sdk: org.freedesktop.Sdk command: io.github.lunarmeadow.barrett.sh finish-args: # hardware 3D - --device=all # X11 + XShm access - --share=ipc - --socket=x11 # Audio - --socket=pulseaudio cleanup: - /include - /lib/pkgconfig - /lib/cmake - '*.a' - '*.la' sdk-extensions: - org.freedesktop.Sdk.Extension.llvm20 build-options: strip: true no-debuginfo: true modules: - name: adlmidi builddir: true buildsystem: cmake-ninja build-options: append-path: /usr/lib/sdk/llvm20/bin prepend-ld-library-path: /usr/lib/sdk/llvm20/lib config-opts: - -DCMAKE_C_COMPILER=clang - -DCMAKE_CXX_COMPILER=clang++ - -DCMAKE_LINKER_TYPE=LLD - -DCMAKE_BUILD_TYPE=Release - -DlibADLMIDI_STATIC=OFF - -DlibADLMIDI_SHARED=ON sources: - type: archive url: https://api.github.com/repos/Wohlstand/libADLMIDI/tarball/v1.6.2.1 sha256: a06680498ad98286caf801b9d48e4d2b83bb9bc4c1cfbdad3f8bb737a982431f dest-filename: adlmidi.tar.gz x-checker-data: type: json url: https://api.github.com/repos/Wohlstand/libADLMIDI/releases/latest version-query: .tag_name | sub("^v"; "") url-query: .tarball_url - name: barrett builddir: true buildsystem: cmake-ninja build-options: append-path: /usr/lib/sdk/llvm20/bin prepend-ld-library-path: /usr/lib/sdk/llvm20/lib config-opts: - -DCMAKE_C_COMPILER=clang - -DCMAKE_CXX_COMPILER=clang++ - -DCMAKE_LINKER_TYPE=LLD - -DCMAKE_BUILD_TYPE=Release sources: - type: archive url: https://api.github.com/repos/benhoyt/inih/tarball/r62 sha256: ed649543d32ef3b9f25497b5744dcf1dc8eb7357cbfc3e79030b85a9946888ef dest-filename: inih.tar.gz dest: src/ x-checker-data: type: json url: https://api.github.com/repos/benhoyt/inih/releases/latest version-query: .tag_name | sub("^r"; "") url-query: .tarball_url - type: archive url: https://api.github.com/repos/lunarmeadow/barrett/tarball/v1.3-beta sha256: cd69ab6b3372e20b748cd5984bb7c4c250fb64cb3f55b88051b35b72cfdd7c15 dest-filename: barrett.tar.gz x-checker-data: type: json url: https://api.github.com/repos/lunarmeadow/barrett/releases/latest version-query: .tag_name | sub("^v"; "") url-query: .tarball_url - type: patch path: io.github.lunarmeadow.barrett.no-fetchcontent.patch - type: patch path: io.github.lunarmeadow.barrett.inih-path.patch - type: patch path: io.github.lunarmeadow.barrett.link-math.patch - type: patch path: io.github.lunarmeadow.barrett.cmake-install.patch - name: desktop buildsystem: simple sources: - type: file path: io.github.lunarmeadow.barrett.png - type: file path: io.github.lunarmeadow.barrett.desktop - type: script dest-filename: io.github.lunarmeadow.barrett.sh commands: - cd $XDG_DATA_HOME/rott - barrett - type: file path: io.github.lunarmeadow.barrett.metainfo.xml build-commands: - install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo - install -Dm755 ${FLATPAK_BUILDER_BUILDDIR}/${FLATPAK_ID}.sh -t /app/bin - install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/${FLATPAK_ID}.png -t /app/share/icons/hicolor/256x256/apps - install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/${FLATPAK_ID}.desktop -t /app/share/applications