mirror of
https://github.com/RetroDECK/io.github.shiiion.primehack.git
synced 2024-12-04 19:15:39 +00:00
108 lines
4.1 KiB
YAML
108 lines
4.1 KiB
YAML
app-id: io.github.shiiion.primehack
|
|
runtime: org.kde.Platform
|
|
runtime-version: '6.6'
|
|
sdk: org.kde.Sdk
|
|
command: primehack-wrapper
|
|
rename-desktop-file: primehack.desktop
|
|
rename-icon: dolphin-emu
|
|
rename-appdata-file: primehack.appdata.xml
|
|
finish-args:
|
|
- --device=all
|
|
# the file picker uses portals but the set
|
|
# game directory feature still needs this
|
|
- --filesystem=host:ro
|
|
- --socket=pulseaudio
|
|
- --env=QT_QPA_PLATFORM=xcb
|
|
- --socket=x11
|
|
- --share=network
|
|
- --share=ipc
|
|
# required for the emulated bluetooth adapter feature to work.
|
|
- --allow=bluetooth
|
|
- --filesystem=xdg-run/app/com.discordapp.Discord:create
|
|
- --talk-name=org.freedesktop.ScreenSaver
|
|
# required for Gamescope on Steam Deck
|
|
- --filesystem=xdg-run/gamescope-0:ro
|
|
modules:
|
|
# needed for the bluetooth passthrough feature to work
|
|
- name: libusb
|
|
config-opts:
|
|
- --disable-static
|
|
cleanup:
|
|
- /include
|
|
- /lib/*.la
|
|
- /lib/pkgconfig
|
|
sources:
|
|
- type: archive
|
|
url: https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2
|
|
sha256: ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
|
|
x-checker-data:
|
|
type: anitya
|
|
project-id: 1749
|
|
stable-only: true
|
|
url-template: https://github.com/libusb/libusb/releases/download/v$version/libusb-$version.tar.bz2
|
|
|
|
# enables motion controls on non-wii controllers (switch, ps4, etc)
|
|
# requires a udev rule enabling Motion Sensors access
|
|
- name: libevdev
|
|
buildsystem: meson
|
|
config-opts:
|
|
- -Dtests=disabled
|
|
- -Ddocumentation=disabled
|
|
sources:
|
|
- type: archive
|
|
url: https://www.freedesktop.org/software/libevdev/libevdev-1.13.2.tar.xz
|
|
sha256: 3eca86a6ce55b81d5bce910637fc451c8bbe373b1f9698f375c7f1ad0de3ac48
|
|
x-checker-data:
|
|
type: anitya
|
|
project-id: 20540
|
|
stable-only: true
|
|
url-template: https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz
|
|
|
|
# needed for screensaver inhibition
|
|
- 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
|
|
- -DDISTRIBUTOR=Flathub
|
|
cleanup:
|
|
- /share/man
|
|
post-install:
|
|
# - install -D primehack-wrapper /app/bin/primehack-wrapper
|
|
# - install -Dm644 appdata.xml /app/share/appdata/primehack.appdata.xml
|
|
# - rm /app/share/icons/hicolor/scalable/apps/dolphin-emu.svg
|
|
# - mv /app/share/applications/dolphin-emu.desktop /app/share/applications/primehack.desktop
|
|
- desktop-file-edit --set-key=Exec --set-value='primehack-wrapper' /app/share/applications/primehack.desktop
|
|
- desktop-file-edit --set-key=Name --set-value='PrimeHack' /app/share/applications/primehack.desktop
|
|
- desktop-file-edit --set-key=Icon --set-value='primehack' /app/share/applications/primehack.desktop
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/shiiion/dolphin.git
|
|
commit: 81bfb9686afd2d190134b44dd72d3cee876fe2ab # This commit refers to the PR 166: https://github.com/shiiion/dolphin/pull/166, please change it when it's approved
|
|
# 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
|
|
- type: patch
|
|
path: detectflatpak.patch
|
|
# version strings must match exactly for online multiplayer
|
|
- type: patch
|
|
path: nodirtyversion.patch
|
|
- 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
|
|
- primehack "$@"
|
|
dest-filename: primehack-wrapper
|