app-id: net.mkiol.SpeechNote runtime: org.kde.Platform runtime-version: "5.15-23.08" sdk: org.kde.Sdk rename-icon: dsnote command: dsnote build-options: strip: false finish-args: - --share=ipc - --share=network - --socket=fallback-x11 - --socket=wayland - --socket=pulseaudio - --device=all # AMD ROCm (/dev/kfd) - --filesystem=xdg-desktop - --filesystem=xdg-download - --filesystem=xdg-music - --filesystem=xdg-documents - --filesystem=xdg-videos - --env=PYTORCH_TENSOREXPR=0 - --env=PYTHONPATH=/app/extensions/nvidia/lib/python3.11/site-packages:/app/extensions/amd/lib/python3.11/site-packages:/app/extensions/cpu/lib/python3.11/site-packages:/app/lib/python3.11/site-packages - --env=LD_LIBRARY_PATH=/app/extensions/nvidia/lib:/app/extensions/amd/lib:/app/extensions/cpu/lib:/app/extensions/nvidia/cuda/lib64:/app/extensions/amd/rocm/lib - --env=OPENCL_VENDOR_PATH=/app/opt/opencl/vendors - --env=PERL5LIB=/app/lib/perl5/site_perl - --env=QT_QUICK_CONTROLS_HOVER_ENABLED=1 - --talk-name=org.freedesktop.Notifications - --talk-name=org.kde.StatusNotifierWatcher # system tray icon cleanup: - /cmake - /etc - /man - /dummy - /include - /lib/cmake - /lib/pkgconfig - /lib/python3.11/site-packages/__pycache__ - /lib/python3.11/site-packages/nvidia* - /lib/python3.11/site-packages/cmake* - /lib/python3.11/site-packages/git* - /lib/python3.11/site-packages/Git* - /lib/python3.11/site-packages/torch/test - /lib/python3.11/site-packages/torch/include - /lib/python3.11/site-packages/pypinyin/__pycache__ - /lib/python3.11/site-packages/pandas/tests - /lib/python3.11/site-packages/torchvision* - /lib/debug/opt - /share/cmake - /share/doc - /share/locale - /share/man - /share/pkgconfig - /share/runtime - /share/vim - /share/ffmpeg - /share/aclocal - /bin/spellout - "*.a" - "*.la" add-extensions: net.mkiol.SpeechNote.Addon: directory: extensions no-autodownload: true autodelete: true subdirectories: true version: stable versions: stable;beta;test;master modules: - name: fmt buildsystem: cmake-ninja config-opts: - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DFMT_DOC=OFF - -DFMT_TEST=OFF - -DFMT_FUZZ=OFF sources: - type: archive url: https://github.com/fmtlib/fmt/releases/download/10.2.1/fmt-10.2.1.zip sha256: 312151a2d13c8327f5c9c586ac6cf7cddc1658e8f53edae0ec56509c8fa516c9 - name: openblas buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DBUILD_TESTING=OFF - -DBUILD_WITHOUT_LAPACK=OFF - -DC_LAPACK=ON - -DDYNAMIC_ARCH=ON - -DBUILD_STATIC_LIBS=OFF - -DBUILD_SHARED_LIBS=ON build-options: no-debuginfo: true arch: aarch64: config-opts: - -DTARGET=ARMV8 sources: - type: archive url: https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.26/OpenBLAS-0.3.26.tar.gz sha256: 4e6e4f5cb14c209262e33e6816d70221a2fe49eb69eaf0a06f065598ac602c68 - name: mbrola buildsystem: simple build-commands: - make - mkdir -p /app/bin - cp Bin/mbrola /app/bin sources: - type: archive url: https://github.com/numediart/MBROLA/archive/refs/tags/3.3.tar.gz sha256: c01ded2c0a05667e6df2439c1c02b011a5df2bfdf49e24a524630686aea2b558 - name: espeak buildsystem: autotools config-opts: - --with-pic - --enable-static - --with-pcaudiolib=no - --with-sonic=no - --with-speechplayer=no - --with-mbrola=yes - --with-extdict-ru sources: - type: archive url: https://github.com/rhasspy/espeak-ng/archive/8593723f10cfd9befd50de447f14bf0a9d2a14a4.zip sha256: cc8092f23a28ccd79b1c5e62984a4c4ac1959d2d0b8193ac208d728c620bd5ed - name: boost buildsystem: simple cleanup: - /lib build-commands: - "./bootstrap.sh --prefix=/app --with-libraries=system" - "./b2 -j ${FLATPAK_BUILDER_N_JOBS} install" sources: - type: archive url: https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.tar.bz2 sha256: a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6 - name: webrtcvad buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON sources: - type: archive url: https://github.com/webrtc-mirror/webrtc/archive/ac87c8df2780cb12c74942ec8a473718c76cb5b7.zip sha256: 9ceb1dbd7da99ec2efd6bc18ac1004d446f51e79969203b086b4dcf0ca534c68 - type: patch path: ../patches/webrtcvad.patch - name: libstt buildsystem: simple build-commands: - "chmod --recursive u+w ." - "cp ./libstt.so /app/lib" - "cp ./libkenlm.so /app/lib" - "cp ./libtensorflowlite.so /app/lib" - "cp ./libtflitedelegates.so /app/lib" - "cp ./coqui-stt.h /app/include" build-options: strip: true sources: - type: archive only-arches: - x86_64 strip-components: 0 url: https://github.com/coqui-ai/STT/releases/download/v1.1.0/native_client.tflite.Linux.tar.xz sha256: a6965f80cbfc92e403b2e4ab92e13650c76f131cbefb951b314df046c9e11799 - type: archive only-arches: - aarch64 strip-components: 0 url: https://github.com/coqui-ai/STT/releases/download/v1.1.0/native_client.tflite.linux.aarch64.tar.xz sha256: 5c8ce5e4bb2d8fa55f5a6ac58103d9aee6a080369bc99cd5910d2615783e1ba3 - name: vosk buildsystem: simple build-commands: - "cp ./libvosk.so /app/lib" - "cp ./vosk_api.h /app/include" build-options: strip: true no-debuginfo: true sources: - type: archive only-arches: - x86_64 url: https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-linux-x86_64-0.3.45.zip sha256: bbdc8ed85c43979f6443142889770ea95cbfbc56cffb5c5dcd73afa875c5fbb2 - type: archive only-arches: - aarch64 url: https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-linux-aarch64-0.3.45.zip sha256: 45e95d37755deb07568e79497d7feba8c03aee5a9e071df29961aa023fd94541 - name: onnx buildsystem: simple build-commands: - "cp -r --no-target-directory ./include /app/include" - "cp -r --no-target-directory ./lib /app/lib" sources: - type: archive only-arches: - x86_64 url: https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-linux-x64-1.16.1.tgz sha256: 53a0f03f71587ed602e99e82773132fc634b74c2d227316fbfd4bf67181e72ed - type: archive only-arches: - aarch64 url: https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-linux-aarch64-1.16.1.tgz sha256: f10851b62eb44f9e811134737e7c6edd15733d2c1549cb6ce403808e9c047385 - name: piperphonemize buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON - -DCMAKE_POSITION_INDEPENDENT_CODE=ON sources: - type: archive url: https://github.com/rhasspy/piper-phonemize/archive/7f7b5bd4de22f7fe24341c5bedda0dc1e33f3666.zip sha256: 6bdcb21f6c5ae0deff7c9ae26bf07b994791dc800c1962fd216727e66a409929 - type: patch path: ../patches/piperphonemize.patch - name: spdlog buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON sources: - type: archive url: https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz sha256: ca5cae8d6cac15dae0ec63b21d6ad3530070650f68076f3a4a862ca293a858bb - name: piper buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DPIPER_PHONEMIZE_INCLUDE=/app/include/piper-phonemize sources: - type: archive url: https://github.com/rhasspy/piper/archive/e268564deb779af984ac8f632c98727447632124.zip sha256: 213a31c23c862cbcd9de4231c07d32de35f4ee0b5b5dec52e9ae6dd3aa70ac12 - type: patch path: ../patches/piper.patch - name: ssplitcpp buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DSSPLIT_COMPILE_LIBRARY_ONLY=ON - -DSSPLIT_PREFER_STATIC_COMPILE=ON - -DBUILD_SHARED_LIBS=OFF sources: - type: archive url: https://github.com/ugermann/ssplit-cpp/archive/49a8e12f11945fac82581cf056560965dcb641e6.zip sha256: 31b9556e539bbd35b79d9075e1a0593233b2050c277c4058fbd290985930a39b - type: patch path: ../patches/ssplitcpp.patch - name: pybind11 buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DPYBIND11_INSTALL=ON - -DPYBIND11_TEST=OFF - -DPYBIND11_FINDPYTHON=ON cleanup: - /share sources: - type: archive url: https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1.tar.gz sha256: d475978da0cdc2d43b73f30910786759d593a9d8ee05b1b6846d1eb16c6d2e0c - name: rnnoise buildsystem: autotools config-opts: - --disable-examples - --disable-doc - --disable-shared - --enable-static - --with-pic # adding prefix rnnoise_ to avoid symbol collision with libopus - > CFLAGS=-Dpitch_downsample=rnnoise_pitch_downsample -Dpitch_search=rnnoise_pitch_search -Dremove_doubling=rnnoise_remove_doubling -D_celt_lpc=rnnoise__celt_lpc -Dcelt_iir=rnnoise_celt_iir -D_celt_autocorr=rnnoise__celt_autocorr -Dcompute_gru=rnnoise_compute_gru -Dcompute_dense=rnnoise_compute_dense sources: - type: archive url: https://github.com/GregorR/rnnoise-nu/archive/26269304e120499485438cd93acf5127c6908c68.zip sha256: 93a994a3d59cb89c005f0f861fd522fe268780dc0e2e2acea56945305ed0cbf1 - name: rhvoice buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DWITH_DATA=OFF - -DENABLE_MAGE=OFF - -DBUILD_CLIENT=OFF - -DBUILD_UTILS=OFF - -DBUILD_TESTS=OFF - -DBUILD_SERVICE=OFF - -DBUILD_SPEECHDISPATCHER_MODULE=OFF - -DCMAKE_INSTALL_LIBDIR=/app/lib post-install: - "mkdir -p /app/share/rhvoice" - "cp -R data /app/share/rhvoice" - "cp -R config /app/share/rhvoice" cleanup: - "libboost*" - "libRHVoice_audio*" - "/share/rhvoice" sources: - type: git url: https://github.com/RHVoice/RHVoice.git commit: 3ba2a849c14e547d54f111b53fc39e484939f66c - type: patch path: ../patches/rhvoice.patch - name: bergamot-fallback only-arches: - x86_64 buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DBLAS_LIB_PATH=/app/lib/libopenblas.so - -DBLAS_INC_DIR=/app/include/openblas - -DUSE_INTRINSICS_SSE2=ON - -DUSE_INTRINSICS_SSE3=OFF - -DUSE_INTRINSICS_SSE41=OFF - -DUSE_INTRINSICS_SSE42=OFF - -DUSE_INTRINSICS_AVX=ON - -DUSE_INTRINSICS_AVX2=OFF - -DUSE_INTRINSICS_AVX512=OFF - -DBUILD_ARCH=x86-64 post-install: - "mv /app/lib/libbergamot_api.so /app/lib/libbergamot_api-fallback.so" sources: - type: git url: https://github.com/browsermt/bergamot-translator.git commit: ada8c3922490cc6a507bcf81fa4882b435595323 - type: patch path: ../patches/bergamot.patch - name: bergamot buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DBLAS_LIB_PATH=/app/lib/libopenblas.so - -DBLAS_INC_DIR=/app/include/openblas - -DUSE_INTRINSICS_AVX512=OFF - -DUSE_INTRINSICS_ARMV7_NEONVFPV4=ON build-options: arch: x86-64: config-opts: - -DBUILD_ARCH=x86-64 aarch64: config-opts: - -DBUILD_ARCH=armv8-a sources: - type: git url: https://github.com/browsermt/bergamot-translator.git commit: ada8c3922490cc6a507bcf81fa4882b435595323 - type: patch path: ../patches/bergamot.patch - name: rubberband buildsystem: meson config-opts: - --buildtype=release - -Dauto_features=disabled - -Ddefault_library=static - -Dresampler=builtin - -Dfft=builtin sources: - type: archive url: https://breakfastquay.com/files/releases/rubberband-3.3.0.tar.bz2 sha256: d9ef89e2b8ef9f85b13ac3c2faec30e20acf2c9f3a9c8c45ce637f2bc95e576c - name: ffmpeg buildsystem: autotools config-opts: - --disable-autodetect - --disable-doc - --disable-programs - --disable-everything - --enable-static - --disable-shared - --enable-nonfree - --enable-gpl - --enable-pic - --enable-protocol=file - --enable-filter=aresample - --enable-filter=aformat - --enable-filter=amix - --enable-filter=anull - --enable-filter=volume - --enable-filter=rubberband - --enable-encoder=libmp3lame - --enable-encoder=libvorbis - --enable-encoder=pcm_s16le - --enable-encoder=libopus - --enable-encoder=flac - --enable-encoder=srt - --enable-encoder=subrip - --enable-encoder=ass - --enable-encoder=ssa - --enable-encoder=webvtt - --enable-decoder=pcm_u8 - --enable-decoder=pcm_u32le - --enable-decoder=pcm_u32be - --enable-decoder=pcm_u24le - --enable-decoder=pcm_u24be - --enable-decoder=pcm_u16le - --enable-decoder=pcm_u16be - --enable-decoder=pcm_s8 - --enable-decoder=pcm_s32le - --enable-decoder=pcm_s32be - --enable-decoder=pcm_s24le - --enable-decoder=pcm_s24be - --enable-decoder=pcm_s16le - --enable-decoder=pcm_s16be - --enable-decoder=pcm_f64le - --enable-decoder=pcm_f64be - --enable-decoder=pcm_f32le - --enable-decoder=pcm_f32be - --enable-decoder=aac - --enable-decoder=aac_fixed - --enable-decoder=aac_latm - --enable-decoder=mp3 - --enable-decoder=mp3adu - --enable-decoder=mp3adufloat - --enable-decoder=mp3float - --enable-decoder=mp3on4 - --enable-decoder=mp3on4float - --enable-decoder=libvorbis - --enable-decoder=flac - --enable-decoder=libopus - --enable-decoder=speex - --enable-decoder=ac3 - --enable-decoder=ac3_fixed - --enable-decoder=eac3 - --enable-decoder=srt - --enable-decoder=subrip - --enable-decoder=ass - --enable-decoder=ssa - --enable-decoder=webvtt - --enable-decoder=vplayer - --enable-decoder=microdvd - --enable-muxer=mp3 - --enable-muxer=ogg - --enable-muxer=wav - --enable-muxer=flac - --enable-muxer=srt - --enable-muxer=ass - --enable-muxer=webvtt - --enable-demuxer=aac - --enable-demuxer=mp3 - --enable-demuxer=mov - --enable-demuxer=ogg - --enable-demuxer=matroska - --enable-demuxer=flac - --enable-demuxer=wav - --enable-demuxer=mpegvideo - --enable-demuxer=srt - --enable-demuxer=ass - --enable-demuxer=webvtt - --enable-demuxer=microdvd - --enable-parser=aac - --enable-parser=aac_latm - --enable-parser=ac3 - --enable-libmp3lame - --enable-libvorbis - --enable-libopus - --enable-librubberband - --extra-libs=-lvorbis -logg -lm sources: - type: archive url: https://ffmpeg.org/releases/ffmpeg-6.1.1.tar.xz sha256: 8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968 - type: patch path: ../patches/ffmpeg.patch - name: whispercpp-openblas buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DBUILD_SHARED_LIBS=ON - -DWHISPER_BUILD_TESTS=OFF - -DWHISPER_BUILD_EXAMPLES=OFF - -DWHISPER_OPENBLAS=ON - -DBLAS_LIB_PATH=/app/lib/libopenblas.so - -DCMAKE_C_FLAGS='-O3 -I$$C_INCLUDE_PATH/openblas' - -DCMAKE_CXX_FLAGS='-O3 -I$$CPLUS_INCLUDE_PATH/openblas' post-install: - "mv /app/lib/libwhisper.so /app/lib/libwhisper-openblas.so" sources: - type: archive url: https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.5.4.tar.gz sha256: 06eed84de310fdf5408527e41e863ac3b80b8603576ba0521177464b1b341a3a - type: patch path: ../patches/whispercpp.patch - name: whispercpp-fallback buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DBUILD_SHARED_LIBS=ON - -DWHISPER_BUILD_TESTS=OFF - -DWHISPER_BUILD_EXAMPLES=OFF - -DWHISPER_OPENBLAS=ON - -DWHISPER_NO_AVX=ON - -DWHISPER_NO_AVX2=ON - -DWHISPER_NO_FMA=ON - -DWHISPER_NO_F16C=ON - -DBLAS_LIB_PATH=/app/lib/libopenblas.so - -DCMAKE_C_FLAGS='-O3 -I$$C_INCLUDE_PATH/openblas' - -DCMAKE_CXX_FLAGS='-O3 -I$$CPLUS_INCLUDE_PATH/openblas' post-install: - "mv /app/lib/libwhisper.so /app/lib/libwhisper-fallback.so" sources: - type: archive url: https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.5.4.tar.gz sha256: 06eed84de310fdf5408527e41e863ac3b80b8603576ba0521177464b1b341a3a - type: patch path: ../patches/whispercpp.patch - name: opencl-headers only-arches: - x86_64 buildsystem: cmake-ninja sources: - type: git url: https://github.com/KhronosGroup/OpenCL-Headers.git commit: 4fdcfb0ae675f2f63a9add9552e0af62c2b4ed30 - name: clblast only-arches: - x86_64 buildsystem: cmake-ninja build-options: no-debuginfo: true config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DTUNERS=OFF sources: - type: git url: https://github.com/CNugteren/CLBlast.git commit: e3ce21bb937f07b8282dccf4823e2acbdf286d17 - name: whispercpp-clblast only-arches: - x86_64 buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DBUILD_SHARED_LIBS=ON - -DWHISPER_BUILD_TESTS=OFF - -DWHISPER_BUILD_EXAMPLES=OFF - -DWHISPER_CLBLAST=ON - -DCMAKE_C_FLAGS='-O3' - -DCMAKE_CXX_FLAGS='-O3' post-install: - "mv /app/lib/libwhisper.so /app/lib/libwhisper-clblast.so" sources: - type: archive url: https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.5.4.tar.gz sha256: 06eed84de310fdf5408527e41e863ac3b80b8603576ba0521177464b1b341a3a - type: patch path: ../patches/whispercpp.patch - name: libnumbertext buildsystem: autotools config-opts: - --enable-static=true - --enable-shared=false - --with-pic=yes sources: - type: archive url: https://github.com/Numbertext/libnumbertext/archive/a4b0225813b015a0f796754bc6718be20dd9943c.zip sha256: eb4f91e4c97bb47f8cb7a31d80fdd500024bd9160c9045cdd8dff28beeac4b7a - type: shell commands: - "autoreconf -fi" - name: opencl-vendors only-arches: - x86_64 buildsystem: simple build-commands: - mkdir vendors - echo "libnvidia-opencl.so" > vendors/nvidia.icd - echo "libMesaOpenCL.so.1" > vendors/mesa.icd - echo "/app/extensions/amd/rocm/lib/libamdocl64.so" > vendors/amdocl64.icd - mkdir -p /app/opt/opencl - cp -r vendors /app/opt/opencl/ - name: numa buildsystem: autotools config-opts: - --with-pic cleanup: - /bin sources: - type: archive url: https://github.com/numactl/numactl/releases/download/v2.0.16/numactl-2.0.16.tar.gz sha256: 1b242f893af977a1d31af6ce9d6b8dafdd2d8ec3dc9207f7c2dc0d3446e7c7c8 - name: qhotkey buildsystem: cmake-ninja build-options: no-debuginfo: true config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON sources: - type: archive url: https://github.com/Skycoder42/QHotkey/archive/cd72a013275803fce33e028fc8b05ae32248da1f.zip sha256: 55995114e8b5947cb6a59a19a53840eaf81fddc420fd3d180dcb0db9d8d33e13 - name: april-asr buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release sources: - type: archive url: https://github.com/abb128/april-asr/archive/3308e68442664552de593957cad0fa443ea183dd.zip sha256: 0640fc16a43018afb1db9f17e93f545d7ac1f07e4bc47ba318d2c7311bef2df5 - name: uroman only-arches: - x86_64 buildsystem: simple build-commands: - "mkdir -p ${FLATPAK_DEST}/share/uroman" - "cp -r ./bin ${FLATPAK_DEST}/share/uroman" - "cp -r ./data ${FLATPAK_DEST}/share/uroman" - "cp -r ./lib ${FLATPAK_DEST}/share/uroman" sources: - type: archive url: https://github.com/isi-nlp/uroman/archive/refs/tags/v1.2.8.tar.gz sha256: 08e5058341428f3f4ca2401d409df1f4341c386853c4de836e7ab2c2a750cb88 - name: perl only-arches: - x86_64 buildsystem: simple build-options: no-debuginfo: true build-commands: - ./configure.gnu -des - make -j${FLATPAK_BUILDER_N_JOBS} - mkdir -p ${FLATPAK_DEST}/bin - cp perl ${FLATPAK_DEST}/bin/ - mkdir -p ${FLATPAK_DEST}/lib/perl5/site_perl - cp -r lib/* ${FLATPAK_DEST}/lib/perl5/site_perl/ sources: - type: archive url: https://www.cpan.org/src/5.0/perl-5.38.0.tar.gz sha256: 213ef58089d2f2c972ea353517dc60ec3656f050dcc027666e118b508423e517 - python3-modules-x86-64.yaml - name: oneapi only-arches: - x86_64 buildsystem: simple build-options: no-debuginfo: true cleanup: - /opt/oneapi build-commands: - sh l_BaseKit_p_2024.0.0.49564_offline.sh --extract-folder ./oneapi -a --eula accept --silent --install-dir ${FLATPAK_DEST}/opt/oneapi sources: - type: file url: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/20f4e6a1-6b0b-4752-b8c1-e5eacba10e01/l_BaseKit_p_2024.0.0.49564_offline.sh sha256: f6613cb9c79fbf61c2e541144b8d5c70be845e071f29feb5686b64481528276d - name: onednn only-arches: - x86_64 buildsystem: cmake-ninja build-options: no-debuginfo: true cleanup: - /bin config-opts: - -DCMAKE_BUILD_TYPE=Release - -DONEDNN_LIBRARY_TYPE=STATIC - -DONEDNN_BUILD_EXAMPLES=OFF - -DONEDNN_BUILD_TESTS=OFF - -DONEDNN_ENABLE_WORKLOAD=INFERENCE - -DONEDNN_ENABLE_PRIMITIVE=CONVOLUTION;REORDER - -DONEDNN_BUILD_GRAPH=OFF sources: - type: archive url: https://github.com/oneapi-src/oneDNN/archive/refs/tags/v3.3.1.tar.gz sha256: e0b7a9452162e854cf08b4e90bcd1b382b9903ace6a61503a872573880d24c3f - name: python3-pybind11 buildsystem: simple cleanup: - /bin - /lib/python3.11/site-packages/pybind11* build-commands: - pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "pybind11" --no-build-isolation sources: - type: file url: https://files.pythonhosted.org/packages/06/55/9f73c32dda93fa4f539fafa268f9504e83c489f460c380371d94296126cd/pybind11-2.11.1-py3-none-any.whl sha256: 33cdd02a6453380dd71cc70357ce388ad1ee8d32bd0e38fc22b273d050aa29b3 - name: ctranslate2 only-arches: - x86_64 buildsystem: cmake-ninja build-options: no-debuginfo: true env: CTRANSLATE2_ROOT: /app/extensions/cpu cleanup: - /extensions/cpu/bin - /extensions/cpu/include - /extensions/cpu/lib/cmake config-opts: - -DCMAKE_BUILD_TYPE=Release - -DBUILD_CLI=OFF - -DCUDA_DYNAMIC_LOADING=ON - -DOPENMP_RUNTIME=COMP - -DWITH_MKL=ON - -DWITH_DNNL=ON - -DWITH_RUY=ON - -DINTEL_ROOT=/app/opt/oneapi - -DCMAKE_CXX_FLAGS=-msse4.1 - -DCMAKE_INSTALL_PREFIX=/app/extensions/cpu - -DCMAKE_SYSTEM_PREFIX_PATH=/app post-install: - rm -rf ${FLATPAK_DEST}/lib/python3.11/site-packages/ctranslate2* - mkdir -p ${FLATPAK_DEST}/extensions/cpu - cd python && python setup.py bdist_wheel - pip3 install --verbose --exists-action=i --no-index --prefix=${FLATPAK_DEST}/extensions/cpu --no-build-isolation python/dist/*.whl - strip ${FLATPAK_DEST}/extensions/cpu/lib/libctranslate2.so.4.2.1 sources: - type: git url: https://github.com/OpenNMT/CTranslate2.git commit: 0527ef7a2988f0b65b2c534168ae2df687ed9dc6 - type: patch path: ../patches/ctranslate2.patch - name: html2md buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_POSITION_INDEPENDENT_CODE=ON - -DBUILD_EXE=OFF sources: - type: archive url: https://github.com/tim-gromeyer/html2md/archive/refs/tags/v1.5.3.tar.gz sha256: 9853eeb1d2b1ca34ee7143521d03daacbcfac57a1763180ebd0730595cb46961 - type: patch path: ../patches/html2md.patch - name: maddy buildsystem: simple build-commands: - cp -r include/maddy ${FLATPAK_DEST}/include sources: - type: archive url: https://github.com/progsource/maddy/archive/refs/tags/1.3.0.tar.gz sha256: 561681f8c8d2b998c153cda734107a0bc1dea4bb0df69fd813922da63fa9f3e7 - name: xkbcommon buildsystem: meson config-opts: - --buildtype=release - -Ddefault_library=static - -Denable-docs=false - -Denable-tools=false - -Denable-bash-completion=false - -Dx-locale-root=/usr/share/X11/locale cleanup: - /bin - /libexec sources: - type: archive url: https://xkbcommon.org/download/libxkbcommon-1.6.0.tar.xz sha256: 0edc14eccdd391514458bc5f5a4b99863ed2d651e4dd761a90abf4f46ef99c2b - name: dsnote buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DWITH_FLATPAK=ON - -DWITH_DESKTOP=ON - -DDOWNLOAD_LIBSTT=OFF - -DBUILD_VOSK=OFF - -DBUILD_LIBARCHIVE=OFF - -DBUILD_FMT=OFF - -DBUILD_WHISPERCPP=OFF - -DBUILD_WEBRTCVAD=OFF - -DBUILD_OPENBLAS=OFF - -DBUILD_XZ=OFF - -DBUILD_RNNOISE=OFF - -DBUILD_PYBIND11=OFF - -DBUILD_PYTHON_MODULE=OFF - -DBUILD_ESPEAK=OFF - -DBUILD_PIPER=OFF - -DBUILD_SSPLITCPP=OFF - -DBUILD_RHVOICE=OFF - -DBUILD_BERGAMOT=OFF - -DBUILD_UROMAN=OFF - -DBUILD_RUBBERBAND=OFF - -DBUILD_FFMPEG=OFF - -DBUILD_TAGLIB=OFF - -DBUILD_LIBNUMBERTEXT=OFF - -DBUILD_QHOTKEY=OFF - -DBUILD_APRILASR=OFF - -DBUILD_HTML2MD=OFF - -DBUILD_MADDY=OFF build-options: arch: aarch64: config-opts: - -DWITH_PY=OFF post-install: - install -d ${FLATPAK_DEST}/extensions sources: - type: dir path: ../ skip: - flatpak - external - build - '*-bak*' - misc - '.git' - '*.user.*'