mirror of
https://github.com/RetroDECK/org.ppsspp.PPSSPP.git
synced 2024-11-22 13:45:38 +00:00
84 lines
2.4 KiB
YAML
84 lines
2.4 KiB
YAML
app-id: org.ppsspp.PPSSPP
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '22.08'
|
|
sdk: org.freedesktop.Sdk
|
|
separate-locales: false
|
|
rename-icon: ppsspp
|
|
rename-desktop-file: PPSSPPSDL.desktop
|
|
command: PPSSPPSDL
|
|
finish-args:
|
|
- --device=all
|
|
- --filesystem=host:ro
|
|
- --socket=pulseaudio
|
|
- --socket=x11
|
|
- --socket=wayland
|
|
- --share=ipc
|
|
- --share=network
|
|
- --talk-name=org.freedesktop.ScreenSaver
|
|
add-extensions:
|
|
org.ppsspp.PPSSPP.Locale:
|
|
directory: share/locale
|
|
bundle: true
|
|
no-autodownload: false
|
|
subdirectories: false
|
|
autodelete: true
|
|
locale-subset: true
|
|
modules:
|
|
- shared-modules/glu/glu-9.json
|
|
- shared-modules/glew/glew.json
|
|
|
|
- name: ppsspp
|
|
buildsystem: cmake
|
|
config-opts:
|
|
- -DUSE_SYSTEM_FFMPEG=OFF
|
|
- -DUSE_SYSTEM_LIBZIP=ON
|
|
- -DUSE_SYSTEM_ZSTD=ON
|
|
|
|
- -DUSE_WAYLAND_WSI=ON
|
|
- -DUSING_QT_UI=OFF
|
|
|
|
- -DBUILD_TESTING=OFF
|
|
- -DOpenGL_GL_PREFERENCE=GLVND
|
|
build-options:
|
|
arch:
|
|
aarch64:
|
|
config-opts:
|
|
- -DUSING_EGL=ON
|
|
- -DUSING_GLES2=ON
|
|
post-install:
|
|
- desktop-file-edit --set-name=PPSSPP ${FLATPAK_DEST}/share/applications/PPSSPPSDL.desktop
|
|
- install -Dm644 icons/icon-512.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/ppsspp.svg
|
|
- install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo
|
|
# fix icon
|
|
- ln -s ../share/ppsspp/assets ${FLATPAK_DEST}/bin/assets
|
|
cleanup:
|
|
- /share/ppsspp/assets/lang/README.md
|
|
sources:
|
|
- type: git
|
|
url: &ppsspp-url https://github.com/hrydgard/ppsspp.git
|
|
tag: v1.14
|
|
commit: aad5d7542e1f8e805121df4713317eda3ba9eb02
|
|
x-checker-data:
|
|
type: git
|
|
tag-pattern: ^v([\d.]+)$
|
|
is-main-source: true
|
|
|
|
- type: file
|
|
path: org.ppsspp.PPSSPP.metainfo.xml
|
|
|
|
- name: ppsspp-localization
|
|
buildsystem: simple
|
|
build-commands:
|
|
- |
|
|
for LANG_FILE in assets/lang/*.ini; do
|
|
LANG_FILE_NAME="$(basename "$LANG_FILE")"
|
|
LANG_PREFIX="${LANG_FILE_NAME:0:2}"
|
|
LANG_DEST="$FLATPAK_DEST/share/locale/$LANG_PREFIX/ppsspp/$LANG_FILE_NAME";
|
|
ln -fsr "$LANG_DEST" "$FLATPAK_DEST/share/ppsspp/$LANG_FILE"
|
|
install -Dm644 "$LANG_FILE" "$LANG_DEST"
|
|
done
|
|
sources:
|
|
- type: shell
|
|
commands:
|
|
- cp -a $FLATPAK_DEST/share/ppsspp/assets .
|