MANIFEST: fixed copy commands (again)

This commit is contained in:
XargonWan 2024-07-21 20:22:11 +09:00
parent 0a5d5863c6
commit afc083e39c

View file

@ -2,8 +2,8 @@ app-id: net.retrodeck.retrodeck
runtime: org.kde.Platform runtime: org.kde.Platform
runtime-version: "6.7" runtime-version: "6.7"
sdk: org.kde.Sdk sdk: org.kde.Sdk
sdk-extensions: # sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm18 # Needed for RPCS3 # - org.freedesktop.Sdk.Extension.llvm18 # Needed for RPCS3
command: retrodeck.sh command: retrodeck.sh
finish-args: finish-args:
@ -110,56 +110,56 @@ modules:
post-install: post-install:
- ln -s "xml" "${FLATPAK_DEST}/bin/xmlstarlet" ||: - ln -s "xml" "${FLATPAK_DEST}/bin/xmlstarlet" ||:
# mesa repo got a double certificate issue and gnutils cannot handle that so GLU download fails, # # mesa repo got a double certificate issue and gnutils cannot handle that so GLU download fails,
# this affects even the shared-modules's libglu so I have to replace it temporarly # # this affects even the shared-modules's libglu so I have to replace it temporarly
# more info there: https://gitlab.com/gnutls/gnutls/-/issues/1335 # # more info there: https://gitlab.com/gnutls/gnutls/-/issues/1335
# dependency of: RETROARCH, CEMU, RPCS3, XEMU, PPSSPP # # dependency of: RETROARCH, CEMU, RPCS3, XEMU, PPSSPP
- name: libglu # - name: libglu
buildsystem: meson # buildsystem: meson
cleanup: # cleanup:
- /include # - /include
- /lib/debug # - /lib/debug
- /lib/pkgconfig # - /lib/pkgconfig
- /lib/*.a # - /lib/*.a
sources: # sources:
- type: archive # - type: archive
url: https://ftp.osuosl.org/pub/blfs/conglomeration/glu/glu-9.0.3.tar.xz # url: https://ftp.osuosl.org/pub/blfs/conglomeration/glu/glu-9.0.3.tar.xz
sha256: bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f # sha256: bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f
# - type: archive # # - type: archive
# url: https://mesa.freedesktop.org/archive/glu/glu-9.0.3.tar.xz # # url: https://mesa.freedesktop.org/archive/glu/glu-9.0.3.tar.xz
# sha256: bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f # # sha256: bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f
# x-checker-data: # # x-checker-data:
# type: anitya # # type: anitya
# project-id: 13518 # # project-id: 13518
# stable-only: true # # stable-only: true
# url-template: https://mesa.freedesktop.org/archive/glu/glu-$version.tar.xz # # url-template: https://mesa.freedesktop.org/archive/glu/glu-$version.tar.xz
- name: libgudev # - name: libgudev
buildsystem: meson # buildsystem: meson
config-opts: # config-opts:
- -Dtests=disabled # - -Dtests=disabled
- -Dvapi=disabled # - -Dvapi=disabled
- -Dintrospection=disabled # - -Dintrospection=disabled
- -Dgtk_doc=false # - -Dgtk_doc=false
cleanup: # cleanup:
- /include # - /include
- /etc # - /etc
- /libexec # - /libexec
- /sbin # - /sbin
- /lib/pkgconfig # - /lib/pkgconfig
- /lib/systemd # - /lib/systemd
- /man # - /man
- /share/aclocal # - /share/aclocal
- /share/doc # - /share/doc
- /share/gtk-doc # - /share/gtk-doc
- /share/man # - /share/man
- /share/pkgconfig # - /share/pkgconfig
- '*.la' # - '*.la'
- '*.a' # - '*.a'
sources: # sources:
- type: archive # - type: archive
url: https://ftp.osuosl.org/pub/blfs/conglomeration/libgudev/libgudev-237.tar.xz # url: https://ftp.osuosl.org/pub/blfs/conglomeration/libgudev/libgudev-237.tar.xz
sha256: 0d06b21170d20c93e4f0534dbb9b0a8b4f1119ffb00b4031aaeb5b9148b686aa # sha256: 0d06b21170d20c93e4f0534dbb9b0a8b4f1119ffb00b4031aaeb5b9148b686aa
- name: rclone - name: rclone
buildsystem: simple buildsystem: simple
@ -210,122 +210,122 @@ modules:
sha256: 4ee662847c588c3ef2fec8bfb304e8739e3dbaba87ccb9a608d691c88f5b64dc sha256: 4ee662847c588c3ef2fec8bfb304e8739e3dbaba87ccb9a608d691c88f5b64dc
# dependency of: CEMU # dependency of: CEMU
- name: glslang # - name: glslang
buildsystem: cmake-ninja # buildsystem: cmake-ninja
config-opts: # config-opts:
- -DCMAKE_BUILD_TYPE=Release # - -DCMAKE_BUILD_TYPE=Release
- -DENABLE_CTEST=OFF # - -DENABLE_CTEST=OFF
# TODO: Does Cemu benefit from SPIRV-Tools-opt # # TODO: Does Cemu benefit from SPIRV-Tools-opt
- -DENABLE_OPT=OFF # - -DENABLE_OPT=OFF
cleanup: # cleanup:
- /include # - /include
- /lib/cmake # - /lib/cmake
sources: # sources:
- type: archive # - type: archive
url: https://github.com/KhronosGroup/glslang/archive/14.2.0.tar.gz # url: https://github.com/KhronosGroup/glslang/archive/14.2.0.tar.gz
sha256: 14a2edbb509cb3e51a9a53e3f5e435dbf5971604b4b833e63e6076e8c0a997b5 # sha256: 14a2edbb509cb3e51a9a53e3f5e435dbf5971604b4b833e63e6076e8c0a997b5
x-checker-data: # x-checker-data:
type: anitya # type: anitya
stable-only: true # stable-only: true
project-id: 205796 # project-id: 205796
url-template: https://github.com/KhronosGroup/glslang/archive/$version.tar.gz # url-template: https://github.com/KhronosGroup/glslang/archive/$version.tar.gz
# enables motion controls on non-wii controllers (switch, ps4, etc) # # enables motion controls on non-wii controllers (switch, ps4, etc)
# dependency of: DOLPHIN, RPCS3 # # dependency of: DOLPHIN, RPCS3
# TODO: requires a udev rule enabling Motion Sensors access # # TODO: requires a udev rule enabling Motion Sensors access
- name: libevdev # - name: libevdev
buildsystem: meson # buildsystem: meson
config-opts: # config-opts:
- -Dtests=disabled # - -Dtests=disabled
- -Ddocumentation=disabled # - -Ddocumentation=disabled
cleanup: # cleanup:
- /bin # - /bin
- /include # - /include
- /lib/pkgconfig # - /lib/pkgconfig
- /share # - /share
sources: # sources:
- type: archive # - type: archive
url: https://www.freedesktop.org/software/libevdev/libevdev-1.13.2.tar.xz # url: https://www.freedesktop.org/software/libevdev/libevdev-1.13.2.tar.xz
sha256: 3eca86a6ce55b81d5bce910637fc451c8bbe373b1f9698f375c7f1ad0de3ac48 # sha256: 3eca86a6ce55b81d5bce910637fc451c8bbe373b1f9698f375c7f1ad0de3ac48
x-checker-data: # x-checker-data:
type: anitya # type: anitya
project-id: 20540 # project-id: 20540
stable-only: true # stable-only: true
url-template: https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz # url-template: https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz
# dependency of: CEMU # # dependency of: CEMU
- name: rapidjson # - name: rapidjson
buildsystem: cmake-ninja # buildsystem: cmake-ninja
config-opts: # config-opts:
- -DRAPIDJSON_BUILD_DOC=OFF # - -DRAPIDJSON_BUILD_DOC=OFF
- -DRAPIDJSON_BUILD_EXAMPLES=OFF # - -DRAPIDJSON_BUILD_EXAMPLES=OFF
- -DRAPIDJSON_BUILD_TESTS=OFF # - -DRAPIDJSON_BUILD_TESTS=OFF
- -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF # - -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
cleanup: # cleanup:
- /include # - /include
- /lib/cmake # - /lib/cmake
- /lib/pkgconfig # - /lib/pkgconfig
- /share/doc # - /share/doc
sources: # sources:
- type: archive # - type: archive
url: https://github.com/Tencent/rapidjson/archive/refs/tags/v1.1.0.tar.gz # url: https://github.com/Tencent/rapidjson/archive/refs/tags/v1.1.0.tar.gz
sha256: bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e # sha256: bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
x-checker-data: # x-checker-data:
type: anitya # type: anitya
project-id: 7422 # project-id: 7422
stable-only: true # stable-only: true
url-template: https://github.com/Tencent/rapidjson/archive/refs/tags/v$version.tar.gz # url-template: https://github.com/Tencent/rapidjson/archive/refs/tags/v$version.tar.gz
# dependency of: CEMU, SOLARUS # # dependency of: CEMU, SOLARUS
- name: glm # - name: glm
buildsystem: cmake-ninja # buildsystem: cmake-ninja
cleanup: ['*'] # cleanup: ['*']
no-make-install: true # no-make-install: true
post-install: # post-install:
- install -d ${FLATPAK_DEST}/include # - install -d ${FLATPAK_DEST}/include
- cp -R glm ${FLATPAK_DEST}/include # - cp -R glm ${FLATPAK_DEST}/include
- cp -R cmake/glm ${FLATPAK_DEST}/lib/cmake # - cp -R cmake/glm ${FLATPAK_DEST}/lib/cmake
sources: # sources:
- type: archive # - type: archive
url: https://github.com/g-truc/glm/releases/download/0.9.9.8/glm-0.9.9.8.zip # url: https://github.com/g-truc/glm/releases/download/0.9.9.8/glm-0.9.9.8.zip
sha256: 37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c # sha256: 37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
# dependency of: CEMU, ES-DE # # dependency of: CEMU, ES-DE
- name: pugixml # - name: pugixml
buildsystem: cmake-ninja # buildsystem: cmake-ninja
config-opts: # config-opts:
- -DBUILD_SHARED_LIBS=ON # - -DBUILD_SHARED_LIBS=ON
cleanup: # cleanup:
- /include # - /include
- /lib/cmake # - /lib/cmake
- /lib/pkgconfig # - /lib/pkgconfig
sources: # sources:
- type: archive # - type: archive
url: https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz # url: https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz
sha256: 2f10e276870c64b1db6809050a75e11a897a8d7456c4be5c6b2e35a11168a015 # sha256: 2f10e276870c64b1db6809050a75e11a897a8d7456c4be5c6b2e35a11168a015
x-checker-data: # x-checker-data:
type: anitya # type: anitya
project-id: 3728 # project-id: 3728
url-template: https://github.com/zeux/pugixml/releases/download/v$version/pugixml-$version.tar.gz # url-template: https://github.com/zeux/pugixml/releases/download/v$version/pugixml-$version.tar.gz
# dependency of: CEMU, RPCS3, PPSSPP # # dependency of: CEMU, RPCS3, PPSSPP
- rd-submodules/shared-modules/glew/glew.json # - rd-submodules/shared-modules/glew/glew.json
# Dependency of: ES-DE, PPSSPP, RPCS3 # # Dependency of: ES-DE, PPSSPP, RPCS3
- name: ffmpeg # - name: ffmpeg
config-opts: # config-opts:
- --disable-static # - --disable-static
- --disable-programs # - --disable-programs
- --disable-doc # - --disable-doc
- --enable-gpl # - --enable-gpl
- --enable-shared # - --enable-shared
- --enable-libvorbis # - --enable-libvorbis
- --enable-libopus # - --enable-libopus
- --enable-libvpx # - --enable-libvpx
- --enable-postproc # - --enable-postproc
sources: # sources:
- type: git # - type: git
url: https://github.com/FFmpeg/FFmpeg.git # url: https://github.com/FFmpeg/FFmpeg.git
tag: n5.1.4 # tag: n5.1.4
# ES-DE - Start # ES-DE - Start
@ -353,7 +353,7 @@ modules:
- cp -r ./RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/* "${FLATPAK_DEST}/share/libretro/" - cp -r ./RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/* "${FLATPAK_DEST}/share/libretro/"
- chmod +x ./*.AppImage - chmod +x ./*.AppImage
- ./*.AppImage --appimage-extract - ./*.AppImage --appimage-extract
- cp -r squashfs-root/usr/* "${FLATPAK_DEST}" - cp -r squashfs-root/usr/** "${FLATPAK_DEST}"
sources: sources:
- type: archive - type: archive
url: https://buildbot.libretro.com/nightly/linux/x86_64/RetroArch.7z url: https://buildbot.libretro.com/nightly/linux/x86_64/RetroArch.7z
@ -451,7 +451,7 @@ modules:
- chmod +x *.AppImage - chmod +x *.AppImage
- ./*.AppImage --appimage-extract - ./*.AppImage --appimage-extract
- rm -f /app/lib/libselinux.so.1 # TODO this rfile is breaking the build, we need it? Error: cp: /app/lib/libselinux.so.1: no version information available (required by cp) - rm -f /app/lib/libselinux.so.1 # TODO this rfile is breaking the build, we need it? Error: cp: /app/lib/libselinux.so.1: no version information available (required by cp)
- cp -r squashfs-root/usr/* "${FLATPAK_DEST}" - cp -r squashfs-root/usr/** "${FLATPAK_DEST}"
sources: sources:
- type: file - type: file
url: https://github.com/PCSX2/pcsx2/releases/download/v2.0.3/pcsx2-v2.0.3-linux-appimage-x64-Qt.AppImage url: https://github.com/PCSX2/pcsx2/releases/download/v2.0.3/pcsx2-v2.0.3-linux-appimage-x64-Qt.AppImage
@ -472,6 +472,7 @@ modules:
- type: archive - type: archive
url: RETRODECKDOLPHINURLPLACEHOLDER url: RETRODECKDOLPHINURLPLACEHOLDER
sha256: RETRODECKDOLPHINPLACEHOLDER sha256: RETRODECKDOLPHINPLACEHOLDER
# Dolphin - END # Dolphin - END
# XEMU - START # XEMU - START
@ -482,7 +483,7 @@ modules:
build-commands: build-commands:
- chmod +x *.AppImage - chmod +x *.AppImage
- ./*.AppImage --appimage-extract - ./*.AppImage --appimage-extract
- cp -r squashfs-root/usr/* "${FLATPAK_DEST}" - cp -r squashfs-root/usr/** "${FLATPAK_DEST}"
sources: sources:
- type: file - type: file
url: https://github.com/xemu-project/xemu/releases/download/v0.7.129/xemu-v0.7.129-x86_64.AppImage url: https://github.com/xemu-project/xemu/releases/download/v0.7.129/xemu-v0.7.129-x86_64.AppImage
@ -507,7 +508,7 @@ modules:
buildsystem: simple buildsystem: simple
commands: commands:
- chmod +x melonDS - chmod +x melonDS
- cp -r melonDS "${FLATPAK_DEST}" - cp -r melonDS "${FLATPAK_DEST}/bin"
sources: sources:
- type: archive - type: archive
url: https://github.com/melonDS-emu/melonDS/releases/download/0.9.5/melonDS_0.9.5_linux_x64.zip url: https://github.com/melonDS-emu/melonDS/releases/download/0.9.5/melonDS_0.9.5_linux_x64.zip
@ -526,8 +527,8 @@ modules:
- cp -r squashfs-root/usr/bin* "${FLATPAK_DEST}/bin" - cp -r squashfs-root/usr/bin* "${FLATPAK_DEST}/bin"
- cp -r squashfs-root/usr/lib* "${FLATPAK_DEST}/lib" - cp -r squashfs-root/usr/lib* "${FLATPAK_DEST}/lib"
- cp -r squashfs-root/usr/share* "${FLATPAK_DEST}/share" - cp -r squashfs-root/usr/share* "${FLATPAK_DEST}/share"
#TODO: - cp -r squashfs-root/usr/optional* # maybe aloready included in flatpak runtime #TODO: - cp -r squashfs-root/usr/optional* # maybe already included in flatpak runtime
#TODO: - cp -r squashfs-root/usr/plugins* # maybe aloready included in qt #TODO: - cp -r squashfs-root/usr/plugins* # maybe already included in qt
#TODO: Do we need this wrapper? squashfs-root/apprun-hooks/linuxdeploy-plugin-qt-hook.sh #TODO: Do we need this wrapper? squashfs-root/apprun-hooks/linuxdeploy-plugin-qt-hook.sh
sources: sources:
- type: file - type: file
@ -537,41 +538,17 @@ modules:
# RPCS3 - END # RPCS3 - END
# PRIMEHACK - START # PRIMEHACK - START
# https://github.com/flathub/io.github.shiiion.primehack # https://github.com/RetroDECK/io.github.shiiion.primehack
- name: primehack - name: retrodeck-primehack
buildsystem: cmake-ninja buildsystem: simple
config-opts: build-commands:
- -DCMAKE_BUILD_TYPE=Release - cp -r files/** "${FLATPAK_DEST}"
- -DENABLE_ALSA=OFF - chmod +x "${FLATPAK_DEST}/bin/"*
- -DENABLE_SDL=ON
- -DENABLE_EVDEV=ON
- -DDISTRIBUTOR=Flathub
cleanup:
- /share/man
post-install:
- install -D primehack-wrapper /app/bin/primehack-wrapper
sources: sources:
- type: git - type: archive
url: https://github.com/shiiion/dolphin.git url: RETRODECKPRIMEHACKURLPLACEHOLDER
commit: 81bfb9686afd2d190134b44dd72d3cee876fe2ab # This commit refers to the PR 166: https://github.com/shiiion/dolphin/pull/166, please change it when it's approved sha256: RETRODECKPRIMEHACKPLACEHOLDER
# 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: rd-submodules/primehack/detectflatpak.patch
# version strings must match exactly for online multiplayer
- type: patch
path: rd-submodules/primehack/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
# PRIMEHACK - END # PRIMEHACK - END
@ -583,7 +560,7 @@ modules:
build-commands: build-commands:
- chmod +x *.AppImage - chmod +x *.AppImage
- ./*.AppImage --appimage-extract - ./*.AppImage --appimage-extract
- cp -r squashfs-root/usr/* "${FLATPAK_DEST}/duckstation" - cp -r squashfs-root/usr/** "${FLATPAK_DEST}/duckstation"
sources: sources:
- type: file - type: file
url: https://github.com/stenzek/duckstation/releases/download/v0.1-6937/DuckStation-x64.AppImage url: https://github.com/stenzek/duckstation/releases/download/v0.1-6937/DuckStation-x64.AppImage
@ -599,7 +576,7 @@ modules:
build-commands: build-commands:
- chmod +x *.AppImage - chmod +x *.AppImage
- ./*.AppImage --appimage-extract - ./*.AppImage --appimage-extract
- cp -r squashfs-root/usr/* "${FLATPAK_DEST}" - cp -r squashfs-root/usr/** "${FLATPAK_DEST}"
#TODO: do we need this wrapper? squashfs-root/apprun-hooks/linuxdeploy-plugin-gtk.sh #TODO: do we need this wrapper? squashfs-root/apprun-hooks/linuxdeploy-plugin-gtk.sh
sources: sources:
- type: file - type: file