2024-11-09 19:07:37 +00:00
|
|
|
app-id: net.shadps4.shadPS4
|
2024-11-08 00:31:07 +00:00
|
|
|
runtime: org.kde.Platform
|
2024-11-08 08:48:25 +00:00
|
|
|
runtime-version: '6.8'
|
2024-11-08 00:31:07 +00:00
|
|
|
sdk: org.kde.Sdk
|
|
|
|
command: shadps4
|
|
|
|
|
|
|
|
finish-args:
|
|
|
|
# gamepad and 3D hardware support
|
|
|
|
- --device=dri
|
|
|
|
- --device=input
|
|
|
|
- --allow=bluetooth
|
|
|
|
# Wayland + fallback
|
|
|
|
- --socket=wayland
|
|
|
|
- --socket=fallback-x11
|
|
|
|
# Audio
|
|
|
|
- --socket=pulseaudio
|
|
|
|
- --talk-name=org.kde.StatusNotifierWatcher
|
2024-11-08 08:48:25 +00:00
|
|
|
# Reading the game list is very slow through the XDG portal
|
|
|
|
# More filesystem overrides may need to be added by users
|
|
|
|
# depending on where they store their games but these
|
|
|
|
# are reasonable defaults for direct access.
|
2024-11-08 00:31:07 +00:00
|
|
|
- --share=network
|
2024-11-08 08:48:25 +00:00
|
|
|
- --filesystem=home
|
|
|
|
- --filesystem=/media
|
|
|
|
- --filesystem=/run/media
|
2024-11-08 00:31:07 +00:00
|
|
|
|
|
|
|
sdk-extensions:
|
|
|
|
- org.freedesktop.Sdk.Extension.llvm18
|
|
|
|
|
|
|
|
add-extensions:
|
|
|
|
org.freedesktop.Platform.ffmpeg-full:
|
|
|
|
directory: lib/ffmpeg
|
|
|
|
add-ld-path: .
|
|
|
|
version: '24.08'
|
|
|
|
no-autodownload: false
|
|
|
|
autodelete: false
|
|
|
|
|
|
|
|
cleanup-commands:
|
|
|
|
- mkdir -p ${FLATPAK_DEST}/lib/ffmpeg
|
|
|
|
|
|
|
|
modules:
|
|
|
|
- name: rapidjson
|
|
|
|
buildsystem: cmake-ninja
|
|
|
|
config-opts:
|
|
|
|
- -DRAPIDJSON_BUILD_DOC=OFF
|
|
|
|
- -DRAPIDJSON_BUILD_EXAMPLES=OFF
|
|
|
|
- -DRAPIDJSON_BUILD_TESTS=OFF
|
|
|
|
- -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
|
|
|
|
sources:
|
|
|
|
- type: archive
|
|
|
|
url: https://api.github.com/repos/Tencent/rapidjson/zipball/v1.1.0
|
|
|
|
dest-filename: rapidjson.zip
|
|
|
|
sha256: 7fb9f29b86f6842a6f67ebdf6b56b3fc25671b3bca50448e1505f47f37eb19d5
|
|
|
|
x-checker-data:
|
|
|
|
type: json
|
|
|
|
url: https://api.github.com/repos/tencent/rapidjson/releases/latest
|
|
|
|
version-query: .tag_name
|
|
|
|
url-query: .zipball_url
|
|
|
|
cleanup:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
- name: shadps4
|
|
|
|
buildsystem: cmake-ninja
|
|
|
|
builddir: true
|
|
|
|
build-options:
|
|
|
|
append-path: /usr/lib/sdk/llvm18/bin
|
|
|
|
prepend-ld-library-path: /usr/lib/sdk/llvm18/lib
|
|
|
|
config-opts:
|
|
|
|
- -DENABLE_UPDATER=OFF
|
|
|
|
- -DENABLE_QT_GUI=ON
|
|
|
|
- -DCMAKE_C_COMPILER=clang
|
|
|
|
- -DCMAKE_CXX_COMPILER=clang++
|
|
|
|
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2024-12-07 03:58:04 +00:00
|
|
|
- -DCMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO=ON
|
2024-11-08 00:31:07 +00:00
|
|
|
sources:
|
|
|
|
# We're using a git source here rather than a zipball because zip/tarballs
|
|
|
|
# don't include submodules, which shadps4 depends on (in the externals directory)
|
|
|
|
- type: git
|
|
|
|
url: https://github.com/shadps4-emu/shadPS4
|
2024-11-21 19:38:43 +00:00
|
|
|
tag: v.0.4.0
|
2024-11-08 00:31:07 +00:00
|
|
|
x-checker-data:
|
|
|
|
type: json
|
|
|
|
url: https://api.github.com/repos/shadps4-emu/shadps4/releases/latest
|
|
|
|
tag-query: .tag_name
|
|
|
|
version-query: .tag_name | sub("^v."; "")
|
2024-11-21 19:38:43 +00:00
|
|
|
# vvvvv These can all go away once a new shadPS4 release is tagged vvvvv
|
|
|
|
- type: file
|
|
|
|
url: https://raw.githubusercontent.com/shadps4-emu/shadPS4/refs/heads/main/src/images/net.shadps4.shadPS4.svg
|
|
|
|
dest-filename: net.shadps4.shadPS4.svg
|
|
|
|
sha256: 69f184d51fec3a36603f1d56a969b119e0e64b72c2dae31b6b0a5edf03e4cfe7
|
|
|
|
- type: file
|
|
|
|
url: https://raw.githubusercontent.com/shadps4-emu/shadPS4/refs/heads/main/dist/net.shadps4.shadPS4.metainfo.xml
|
|
|
|
dest-filename: net.shadps4.shadPS4.metainfo.xml
|
|
|
|
sha256: e42ee1b7296792d9b86141660cf6def33d31a9eb887a3d32758bd8be5fc94137
|
|
|
|
- type: file
|
|
|
|
url: https://raw.githubusercontent.com/shadps4-emu/shadPS4/refs/heads/main/dist/net.shadps4.shadPS4.releases.xml
|
|
|
|
dest-filename: net.shadps4.shadPS4.releases.xml
|
|
|
|
sha256: 45c0e9f76e9bcb52aa0e9523c64162059cdc9be8a9caf4256e18ae49aef4d803
|
|
|
|
- type: file
|
|
|
|
url: https://raw.githubusercontent.com/shadps4-emu/shadPS4/refs/heads/main/dist/net.shadps4.shadPS4.desktop
|
|
|
|
dest-filename: net.shadps4.shadPS4.desktop
|
|
|
|
sha256: a5a8f681da507d22e314c37fd6aa5dae6173e54371efeb488575bf40349e75e3
|
|
|
|
post-install:
|
|
|
|
- install -D -m644 net.shadps4.shadPS4.svg -t /app/share/icons/hicolor/scalable/apps/
|
|
|
|
- install -D -m644 net.shadps4.shadPS4.metainfo.xml -t /app/share/metainfo/
|
|
|
|
- install -D -m644 net.shadps4.shadPS4.releases.xml -t /app/share/metainfo/releases/
|
|
|
|
- install -D -m755 net.shadps4.shadPS4.desktop -t /app/share/applications/
|
|
|
|
# ^^^^^ These can all go away once a new shadPS4 release is tagged ^^^^^
|