org.DolphinEmu.dolphin-emu.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. app-id: org.DolphinEmu.dolphin-emu
  2. runtime: org.kde.Platform
  3. runtime-version: '6.8'
  4. sdk: org.kde.Sdk
  5. command: dolphin-emu-wrapper
  6. rename-desktop-file: dolphin-emu.desktop
  7. rename-icon: dolphin-emu
  8. finish-args:
  9. - --device=all
  10. - --socket=pulseaudio
  11. # dolphin doesn't work on wayland (only the ui does), if a user were to set
  12. # this env variable globally to wayland then games wouldn't work.
  13. # we overwrite the setting and force xcb to prevent this from happening.
  14. - --env=QT_QPA_PLATFORM=xcb
  15. - --socket=x11
  16. - --share=network
  17. - --share=ipc
  18. # required for the emulated bluetooth adapter feature to work.
  19. - --allow=bluetooth
  20. - --filesystem=xdg-run/app/com.discordapp.Discord:create
  21. - --talk-name=org.freedesktop.ScreenSaver
  22. # required for Gamescope on Steam Deck
  23. - --filesystem=xdg-run/gamescope-0:ro
  24. modules:
  25. # enables motion controls on non-wii controllers (switch, ps4, etc)
  26. # requires a udev rule enabling Motion Sensors access
  27. - name: libevdev
  28. buildsystem: meson
  29. config-opts:
  30. - -Dtests=disabled
  31. - -Ddocumentation=disabled
  32. sources:
  33. - type: archive
  34. url: https://www.freedesktop.org/software/libevdev/libevdev-1.13.3.tar.xz
  35. sha256: abf1aace86208eebdd5d3550ffded4c8d73bb405b796d51c389c9d0604cbcfbf
  36. x-checker-data:
  37. type: anitya
  38. project-id: 20540
  39. stable-only: true
  40. url-template: https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz
  41. # needed for screensaver inhibition
  42. - name: xdg-screensaver-shim
  43. buildsystem: meson
  44. sources:
  45. - type: archive
  46. url: https://github.com/Unrud/xdg-screensaver-shim/archive/0.0.2.tar.gz
  47. sha256: 0ed2a69fe6ee6cbffd2fe16f85116db737f17fb1e79bfb812d893cf15c728399
  48. # build the vendored SDL2 from Externals until the runtime gets 2.30.9
  49. - SDL2/SDL2.json
  50. - name: dolphin-emu
  51. buildsystem: cmake-ninja
  52. builddir: true
  53. config-opts:
  54. - -DCMAKE_BUILD_TYPE=Release
  55. - -DENABLE_ALSA=OFF
  56. - -DENABLE_SDL=ON
  57. - -DENABLE_EVDEV=ON
  58. - -DDISTRIBUTOR=dolphin-emu.org
  59. cleanup:
  60. - /share/man
  61. post-install:
  62. - install -Dm755 -t ${FLATPAK_DEST}/bin/ ../Flatpak/dolphin-emu-wrapper
  63. - install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml
  64. - desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper'
  65. /app/share/applications/dolphin-emu.desktop
  66. sources:
  67. - type: dir
  68. path: ..