# Building notes: # See https://docs.flathub.org/docs/for-app-authors/submission/ # This flatpak is build from the snap package. # - Get relevant snap package infor - curl -H 'Snap-Device-Series: 16' http://api.snapcraft.io/v2/snaps/info/buzz # | jq # - Download snap and generate sha256sum, update yaml entry. app-id: io.github.chidiwilliams.Buzz runtime: org.freedesktop.Platform # TODO - Update to 24.08 when snap is updated to core24 runtime-version: '22.08' # To match `core22` of the snap sdk: org.freedesktop.Sdk command: run-buzz.sh finish-args: - --socket=wayland - --socket=fallback-x11 - --socket=pulseaudio - --talk-name=org.freedesktop.secrets - --device=dri # TODO switch 'all' to input when it is widely available #- --device=input - --device=all - --share=network - --share=ipc - --filesystem=xdg-documents # Environment variables - --env=LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/app/lib/python3.10/site-packages/nvidia/cudnn/lib:/app/lib/python3.10/site-packages/PyQt6:/app/lib/python3.10/site-packages/PyQt6/Qt6/lib:/app/usr/lib/x86_64-linux-gnu/lapack:/app/usr/lib/x86_64-linux-gnu/blas:/app/usr/lib/x86_64-linux-gnu/pulseaudio:/app/usr/lib/x86_64-linux-gnu:/app/lib/x86_64-linux-gnu/ - --env=PYTHONPATH=$PYTHONPATH:/app/lib/python3.10/site-packages:/app/lib/python3.10/site-packages/PyQt6:/app/lib/python3.10/site-packages/PyQt6/Qt6/lib modules: - name: unsquashfs buildsystem: simple build-commands: - XZ_SUPPORT=1 make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} unsquashfs - install -Dpm755 -t "${FLATPAK_DEST}/bin" squashfs-tools/unsquashfs sources: - type: git url: https://github.com/plougher/squashfs-tools.git tag: 4.6.1 commit: d8cb82d9840330f9344ec37b992595b5d7b44184 - name: snap buildsystem: simple build-commands: - unsquashfs -dest buzz -quiet -no-progress buzz.snap - cp -rT buzz ${FLATPAK_DEST} && rm -rf buzz sources: - type: file dest-filename: buzz.snap # Stable 1.2.0 url: https://api.snapcraft.io/api/v1/snaps/download/RSpCVxCNDwoTXHPXhlYQnziD0jQhVnKA_362.snap sha256: fbc045426c867b1d7ee01178d4f53d785c161709e2a9db6854cefec29aa510d7 # Edge #url: https://api.snapcraft.io/api/v1/snaps/download/RSpCVxCNDwoTXHPXhlYQnziD0jQhVnKA_402.snap #sha256: 0acecacf8fa476bf6d7afcd98b7b557829b70cfa8b1d57e6ff5248737b63ab60 # Borrowed from https://github.com/flathub/org.audacityteam.Audacity/blob/master/org.audacityteam.Audacity.yaml - name: portaudio buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=RelWithDebInfo sources: - type: archive url: https://github.com/PortAudio/portaudio/archive/refs/tags/v19.7.0.tar.gz sha256: 5af29ba58bbdbb7bbcefaaecc77ec8fc413f0db6f4c4e286c40c3e1b83174fa0 # Borrowed from https://github.com/flathub/org.freedownloadmanager.Manager/pull/20/files - name: kerberos subdir: src sources: - type: archive url: https://kerberos.org/dist/krb5/1.21/krb5-1.21.tar.gz sha256: 69f8aaff85484832df67a4bbacd99b9259bd95aab8c651fbbe65cdc9620ea93b - name: Buzz buildsystem: simple build-commands: - install -Dm755 flatpak/run-buzz.sh ${FLATPAK_DEST}/bin/run-buzz.sh - install -Dm644 share/icons/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg - install -Dm644 share/applications/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop - install -Dm644 share/metainfo/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml - install -Dm644 flatpak/libbsd.so.0 ${FLATPAK_DEST}/lib/x86_64-linux-gnu/libbsd.so.0 - install -Dm644 flatpak/libmd.so.0 ${FLATPAK_DEST}/lib/x86_64-linux-gnu/libmd.so.0 - install -Dm644 flatpak/libdb-5.3.so ${FLATPAK_DEST}/lib/x86_64-linux-gnu/libdb-5.3.so - install -Dm644 flatpak/libapparmor.so.1 ${FLATPAK_DEST}/lib/x86_64-linux-gnu/libapparmor.so.1 - install -Dm644 flatpak/libavutil.so.58 ${FLATPAK_DEST}/lib/x86_64-linux-gnu/libavutil.so.58 sources: - type: dir path: .