org.DolphinEmu.dolphin-emu/org.DolphinEmu.dolphin-emu.yml

145 lines
5 KiB
YAML
Raw Normal View History

2021-06-25 17:08:32 +00:00
app-id: org.DolphinEmu.dolphin-emu
branch: stable
runtime: org.kde.Platform
2022-01-13 19:31:26 +00:00
runtime-version: 5.15-21.08
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
rename-appdata-file: dolphin-emu.appdata.xml
finish-args:
- --device=all
# 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
# along with the bluez module, 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
modules:
# 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
2022-04-11 08:56:53 +00:00
url: https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2
sha256: 12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5
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
# needed for the emulate bluetooth adapter feature to work
2021-06-25 17:08:32 +00:00
- name: bluez
config-opts:
- --enable-library
- --disable-manpages
- --disable-udev
- --disable-tools
- --disable-cups
- --disable-monitor
- --disable-client
- --disable-systemd
- --disable-a2dp
- --disable-avrcp
- --disable-network
- --with-dbusconfdir=/app/etc
- --with-dbussessionbusdir=/app/usr/lib/system-services
sources:
- type: archive
2022-03-27 21:41:50 +00:00
url: https://www.kernel.org/pub/linux/bluetooth/bluez-5.64.tar.xz
sha256: ae437e65b6b3070c198bc5b0109fe9cdeb9eaa387380e2072f9de65fe8a1de34
2021-06-25 17:08:32 +00:00
x-checker-data:
type: anitya
project-id: 10029
2022-03-29 14:07:48 +00:00
stable-only: true
2021-06-25 17:08:32 +00:00
url-template: https://www.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz
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
url: https://www.freedesktop.org/software/libevdev/libevdev-1.12.1.tar.xz
sha256: 1dbba41bc516d3ca7abc0da5b862efe3ea8a7018fa6e9b97ce9d39401b22426c
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
# 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
- -DENABLE_EVDEV=ON
2021-06-25 17:08:32 +00:00
- -DDISTRIBUTOR=Flathub
cleanup:
- /share/man
post-install:
- install -D dolphin-emu-wrapper /app/bin/dolphin-emu-wrapper
- install -Dm644 appdata.xml /app/share/appdata/dolphin-emu.appdata.xml
- sed -i -e 's/"2048"/"512"/g' /app/share/icons/hicolor/scalable/apps/dolphin-emu.svg
- 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
2022-07-07 14:13:21 +00:00
commit: 3cd82b619388d0877436390093a6edc2319a6904
2022-07-09 19:13:18 +00:00
x-checker-data:
type: json
url: https://dolphin-emu.org/update/latest/beta
commit-query: .hash
# detects whether dolphin is running in a flatpak sandbox
# and makes it use xdg directories if it is.
# 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
path: detectflatpak.patch
# version strings must match exactly for online multiplayer
2021-06-25 17:08:32 +00:00
- type: patch
path: nodirtyversion.patch
- type: file
path: appdata.xml
- type: script
commands:
- 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
# use gtk3 filechooser on steamdeck
- bv=`cat /sys/devices/virtual/dmi/id/board_vendor`
- bv=$bv`cat /sys/devices/virtual/dmi/id/board_name`
- if [[ $bv == "ValveJupiter" ]]; then
- QT_QPA_PLATFORMTHEME=gtk3 dolphin-emu "$@"
- else
- dolphin-emu "$@"
- fi
2021-06-25 17:08:32 +00:00
dest-filename: dolphin-emu-wrapper