org.ppsspp.PPSSPP/org.ppsspp.PPSSPP.yml

85 lines
2.4 KiB
YAML
Raw Normal View History

app-id: org.ppsspp.PPSSPP
runtime: org.freedesktop.Platform
2023-09-08 20:28:59 +00:00
runtime-version: '23.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
2021-12-14 10:16:14 +00:00
- --socket=wayland
2022-01-11 10:46:35 +00:00
- --share=ipc
- --share=network
2022-08-14 17:08:14 +00:00
- --talk-name=org.freedesktop.ScreenSaver
2023-01-09 06:30:57 +00:00
- --env=SDL_VIDEO_X11_WMCLASS=org.ppsspp.PPSSPP
- --env=SDL_VIDEO_WAYLAND_WMCLASS=org.ppsspp.PPSSPP
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
2021-12-14 10:16:14 +00:00
- name: ppsspp
2021-12-14 10:16:14 +00:00
buildsystem: cmake
config-opts:
2022-07-26 14:12:20 +00:00
- -DUSE_SYSTEM_FFMPEG=OFF
- -DUSE_SYSTEM_LIBZIP=ON
- -DUSE_SYSTEM_ZSTD=ON
2021-12-14 10:16:14 +00:00
2022-07-26 14:12:20 +00:00
- -DUSE_WAYLAND_WSI=ON
- -DUSING_QT_UI=OFF
2021-12-14 10:16:14 +00:00
2022-07-26 14:12:20 +00:00
- -DBUILD_TESTING=OFF
- -DOpenGL_GL_PREFERENCE=GLVND
build-options:
arch:
aarch64:
2021-12-14 10:16:14 +00:00
config-opts:
2022-07-26 14:12:20 +00:00
- -DUSING_EGL=ON
- -DUSING_GLES2=ON
post-install:
2023-01-09 06:30:57 +00:00
- 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
cleanup:
- /share/ppsspp/assets/lang/README.md
sources:
- type: git
url: &ppsspp-url https://github.com/hrydgard/ppsspp.git
2023-09-14 00:05:36 +00:00
tag: v1.16
commit: d18dea4f6a8064fef7b8a36c3eaf1012e6b25d9c
2021-12-14 10:21:21 +00:00
x-checker-data:
2023-05-01 02:47:07 +00:00
type: anitya
project-id: 12295
2023-05-05 01:46:35 +00:00
tag-template: v$version
2021-12-14 10:21:21 +00:00
is-main-source: true
2021-12-14 10:16:14 +00:00
- type: file
path: org.ppsspp.PPSSPP.metainfo.xml
- name: ppsspp-localization
buildsystem: simple
build-commands:
- |
2022-10-16 06:01:15 +00:00
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:
2022-10-16 06:01:15 +00:00
- type: shell
commands:
- cp -a $FLATPAK_DEST/share/ppsspp/assets .