2022-03-22 14:02:12 +00:00
app-id : io.github.shiiion.primehack
2022-03-22 12:40:56 +00:00
runtime : org.kde.Platform
2024-07-23 14:27:09 +00:00
runtime-version : "6.7"
2022-03-22 12:40:56 +00:00
sdk : org.kde.Sdk
2022-11-07 19:25:43 +00:00
command : primehack-wrapper
rename-desktop-file : primehack.desktop
2022-03-22 12:40:56 +00:00
rename-icon : dolphin-emu
2022-11-07 19:25:43 +00:00
rename-appdata-file : primehack.appdata.xml
2022-03-22 12:40:56 +00:00
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
2023-09-02 09:23:14 +00:00
# required for the emulated bluetooth adapter feature to work.
2022-03-22 12:40:56 +00:00
- --allow=bluetooth
- --filesystem=xdg-run/app/com.discordapp.Discord:create
- --talk-name=org.freedesktop.ScreenSaver
2024-01-21 02:49:38 +00:00
# required for Gamescope on Steam Deck
- --filesystem=xdg-run/gamescope-0:ro
2022-03-22 12:40:56 +00:00
modules :
# needed for the bluetooth passthrough feature to work
- name : libusb
config-opts :
- --disable-static
cleanup :
- /include
- /lib/*.la
- /lib/pkgconfig
sources :
- type : archive
2024-02-01 15:54:00 +00:00
url : https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2
sha256 : ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
2022-03-22 12:40:56 +00:00
x-checker-data :
type : anitya
project-id : 1749
2022-03-29 14:11:19 +00:00
stable-only : true
2022-03-22 12:40:56 +00:00
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
2024-05-31 07:42:24 +00:00
url : https://www.freedesktop.org/software/libevdev/libevdev-1.13.2.tar.xz
sha256 : 3eca86a6ce55b81d5bce910637fc451c8bbe373b1f9698f375c7f1ad0de3ac48
2022-03-22 12:40:56 +00:00
x-checker-data :
type : anitya
project-id : 20540
2022-03-29 14:11:19 +00:00
stable-only : true
2022-03-22 12:40:56 +00:00
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
2024-07-21 14:06:35 +00:00
- name : stuff
2024-07-21 13:33:54 +00:00
buildsystem : simple
2024-07-21 13:37:22 +00:00
build-commands :
2024-07-21 13:41:26 +00:00
- mkdir -p /app/share/icons/hicolor/scalable/apps/
2024-07-21 13:33:54 +00:00
- cp icon.svg /app/share/icons/hicolor/scalable/apps/dolphin-emu.svg
2024-07-21 14:06:35 +00:00
- mkdir -p /app/bin
- echo 'echo hello' > /app/bin/primehack-wrapper
2024-07-21 13:33:54 +00:00
sources :
2024-07-21 13:39:17 +00:00
- type : file
path : icon.svg
2024-07-21 13:33:54 +00:00
2022-03-22 12:40:56 +00:00
- 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
2024-07-21 14:06:35 +00:00
post-install :
- install -D primehack-wrapper /app/bin/primehack-wrapper
2024-07-21 13:11:40 +00:00
# # - 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
# - cp retrodeck.png /app/share/icons/hicolor/scalable/apps/io.github.shiiion.primehack.png
# - 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='io.github.shiiion.primehack' /app/share/applications/primehack.desktop
2022-03-22 12:40:56 +00:00
sources :
- type : git
url : https://github.com/shiiion/dolphin.git
2024-07-21 07:49:58 +00:00
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
2022-03-22 12:40:56 +00:00
- type : patch
2022-04-02 12:52:38 +00:00
path : detectflatpak.patch
2024-07-21 07:49:58 +00:00
# version strings must match exactly for online multiplayer
2022-03-22 12:40:56 +00:00
- 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
2024-07-21 07:49:58 +00:00
- primehack "$@"
2022-11-07 19:25:43 +00:00
dest-filename : primehack-wrapper