2021-06-25 17:08:32 +00:00
|
|
|
app-id: org.DolphinEmu.dolphin-emu
|
|
|
|
runtime: org.kde.Platform
|
2024-04-16 20:33:17 +00:00
|
|
|
runtime-version: '6.7'
|
2021-06-25 17:08:32 +00:00
|
|
|
sdk: org.kde.Sdk
|
|
|
|
command: dolphin-emu-wrapper
|
|
|
|
rename-desktop-file: dolphin-emu.desktop
|
|
|
|
rename-icon: dolphin-emu
|
|
|
|
finish-args:
|
|
|
|
- --device=all
|
2021-06-26 10:30:49 +00:00
|
|
|
# the file picker uses portals but the set
|
|
|
|
# game directory feature still needs this
|
2021-06-25 17:08:32 +00:00
|
|
|
- --filesystem=host:ro
|
|
|
|
- --socket=pulseaudio
|
2021-07-19 10:30:59 +00:00
|
|
|
- --env=QT_QPA_PLATFORM=xcb
|
2021-06-25 17:08:32 +00:00
|
|
|
- --socket=x11
|
|
|
|
- --share=network
|
|
|
|
- --share=ipc
|
2023-08-30 18:03:48 +00:00
|
|
|
# required for the emulated bluetooth adapter feature to work.
|
2021-06-25 17:08:32 +00:00
|
|
|
- --allow=bluetooth
|
|
|
|
- --filesystem=xdg-run/app/com.discordapp.Discord:create
|
|
|
|
- --talk-name=org.freedesktop.ScreenSaver
|
2024-01-20 23:39:54 +00:00
|
|
|
# required for Gamescope on Steam Deck
|
|
|
|
- --filesystem=xdg-run/gamescope-0:ro
|
2021-06-25 17:08:32 +00:00
|
|
|
modules:
|
2021-06-26 10:30:49 +00:00
|
|
|
# needed for the bluetooth passthrough feature to work
|
2021-06-25 17:08:32 +00:00
|
|
|
- name: libusb
|
|
|
|
config-opts:
|
|
|
|
- --disable-static
|
|
|
|
cleanup:
|
|
|
|
- /include
|
|
|
|
- /lib/*.la
|
|
|
|
- /lib/pkgconfig
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2024-02-10 10:43:35 +00:00
|
|
|
url: https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2
|
|
|
|
sha256: ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
|
2021-06-25 17:08:32 +00:00
|
|
|
x-checker-data:
|
|
|
|
type: anitya
|
|
|
|
project-id: 1749
|
2022-03-29 14:07:48 +00:00
|
|
|
stable-only: true
|
2021-06-25 17:08:32 +00:00
|
|
|
url-template: https://github.com/libusb/libusb/releases/download/v$version/libusb-$version.tar.bz2
|
|
|
|
|
2021-07-21 16:00:11 +00:00
|
|
|
# enables motion controls on non-wii controllers (switch, ps4, etc)
|
|
|
|
# requires a udev rule enabling Motion Sensors access
|
2021-07-19 11:05:05 +00:00
|
|
|
- name: libevdev
|
|
|
|
buildsystem: meson
|
|
|
|
config-opts:
|
|
|
|
- -Dtests=disabled
|
|
|
|
- -Ddocumentation=disabled
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2024-09-03 03:50:28 +00:00
|
|
|
url: https://www.freedesktop.org/software/libevdev/libevdev-1.13.3.tar.xz
|
|
|
|
sha256: abf1aace86208eebdd5d3550ffded4c8d73bb405b796d51c389c9d0604cbcfbf
|
2021-07-21 16:04:21 +00:00
|
|
|
x-checker-data:
|
|
|
|
type: anitya
|
|
|
|
project-id: 20540
|
2022-03-29 14:07:48 +00:00
|
|
|
stable-only: true
|
2021-07-21 16:04:21 +00:00
|
|
|
url-template: https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz
|
2021-07-19 11:05:05 +00:00
|
|
|
|
2021-06-26 10:30:49 +00:00
|
|
|
# needed for screensaver inhibition
|
2021-06-25 17:08:32 +00:00
|
|
|
- name: xdg-screensaver-shim
|
|
|
|
buildsystem: meson
|
|
|
|
sources:
|
|
|
|
- type: archive
|
|
|
|
url: https://github.com/Unrud/xdg-screensaver-shim/archive/0.0.2.tar.gz
|
|
|
|
sha256: 0ed2a69fe6ee6cbffd2fe16f85116db737f17fb1e79bfb812d893cf15c728399
|
|
|
|
|
|
|
|
- name: dolphin-emu
|
|
|
|
buildsystem: cmake-ninja
|
|
|
|
config-opts:
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- -DENABLE_ALSA=OFF
|
|
|
|
- -DENABLE_SDL=ON
|
2021-07-19 10:49:22 +00:00
|
|
|
- -DENABLE_EVDEV=ON
|
2021-06-25 17:08:32 +00:00
|
|
|
- -DDISTRIBUTOR=Flathub
|
|
|
|
cleanup:
|
|
|
|
- /share/man
|
|
|
|
post-install:
|
2022-07-19 15:01:21 +00:00
|
|
|
- install -D -t ${FLATPAK_DEST}/bin/ dolphin-emu-wrapper
|
2024-08-14 03:33:05 +00:00
|
|
|
- install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ org.DolphinEmu.dolphin-emu.metainfo.xml
|
2024-07-02 10:36:59 +00:00
|
|
|
- sed -i -e 's/viewBox="0 0 1024.02 571.29"/viewBox="0 -285.645 1024 1024" width="2048"
|
|
|
|
height="2048"/g' /app/share/icons/hicolor/scalable/apps/dolphin-emu.svg
|
2021-06-25 17:08:32 +00:00
|
|
|
- desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper'
|
|
|
|
/app/share/applications/dolphin-emu.desktop
|
|
|
|
sources:
|
|
|
|
- type: git
|
|
|
|
url: https://github.com/dolphin-emu/dolphin.git
|
2024-07-29 21:28:11 +00:00
|
|
|
commit: b92e354389bb7c0bd114a8631b8af110d3cb3a14
|
|
|
|
x-checker-data:
|
|
|
|
type: json
|
|
|
|
url: https://dolphin-emu.org/update/latest/beta
|
|
|
|
commit-query: .hash
|
|
|
|
version-query: .shortrev
|
|
|
|
timestamp-query: .date
|
|
|
|
is-main-source: true
|
2022-04-01 15:34:16 +00:00
|
|
|
# detects whether dolphin is running in a flatpak sandbox
|
|
|
|
# and makes it use xdg directories if it is.
|
2021-06-26 10:30:49 +00:00
|
|
|
# prevents dolphin from attempting to write conf files
|
|
|
|
# in non-writable paths, typically happens when a user
|
|
|
|
# has leftover files from a previous non-flatpak install
|
2021-06-25 17:08:32 +00:00
|
|
|
- type: patch
|
2022-04-01 15:34:16 +00:00
|
|
|
path: detectflatpak.patch
|
2021-06-26 10:30:49 +00:00
|
|
|
# version strings must match exactly for online multiplayer
|
2021-06-25 17:08:32 +00:00
|
|
|
- type: patch
|
|
|
|
path: nodirtyversion.patch
|
|
|
|
- type: file
|
2024-08-14 03:33:05 +00:00
|
|
|
path: org.DolphinEmu.dolphin-emu.metainfo.xml
|
2021-06-25 17:08:32 +00:00
|
|
|
- type: script
|
|
|
|
commands:
|
2022-07-19 15:01:21 +00:00
|
|
|
- |
|
|
|
|
for i in {0..9}; do
|
|
|
|
test -S $XDG_RUNTIME_DIR/discord-ipc-$i ||
|
|
|
|
ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;
|
|
|
|
done
|
2022-12-22 16:47:58 +00:00
|
|
|
dolphin-emu "$@"
|
2021-06-25 17:08:32 +00:00
|
|
|
dest-filename: dolphin-emu-wrapper
|