From e99ad6448b34fafb80c837f0669828120a8bb41d Mon Sep 17 00:00:00 2001 From: Carles Pastor Date: Fri, 25 Jun 2021 19:08:32 +0200 Subject: [PATCH] Manifest converted to yaml --- org.DolphinEmu.dolphin-emu.json | 146 -------------------------------- org.DolphinEmu.dolphin-emu.yml | 105 +++++++++++++++++++++++ 2 files changed, 105 insertions(+), 146 deletions(-) delete mode 100644 org.DolphinEmu.dolphin-emu.json create mode 100644 org.DolphinEmu.dolphin-emu.yml diff --git a/org.DolphinEmu.dolphin-emu.json b/org.DolphinEmu.dolphin-emu.json deleted file mode 100644 index 2a8f1d3..0000000 --- a/org.DolphinEmu.dolphin-emu.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "app-id": "org.DolphinEmu.dolphin-emu", - "branch": "stable", - "runtime": "org.kde.Platform", - "runtime-version": "5.15", - "sdk": "org.kde.Sdk", - "command": "dolphin-emu-wrapper", - "rename-desktop-file": "dolphin-emu.desktop", - "rename-icon": "dolphin-emu", - "rename-appdata-file": "dolphin-emu.appdata.xml", - "finish-args": [ - "--device=all", - "--filesystem=host:ro", - "--socket=pulseaudio", - "--socket=x11", - "--share=network", - "--share=ipc", - "--allow=bluetooth", - "--filesystem=xdg-run/app/com.discordapp.Discord:create", - "--talk-name=org.freedesktop.ScreenSaver" - ], - "modules": [ - { - "name": "libusb", - "config-opts": [ - "--disable-static" - ], - "cleanup": [ - "/include", - "/lib/*.la", - "/lib/pkgconfig" - ], - "sources": [ - { - "type": "archive", - "url": "https://github.com/libusb/libusb/releases/download/v1.0.24/libusb-1.0.24.tar.bz2", - "sha256": "7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a", - "x-checker-data": { - "type": "anitya", - "project-id": 1749, - "url-template": "https://github.com/libusb/libusb/releases/download/v$version/libusb-$version.tar.bz2" - } - } - ] - }, - { - "name": "bluez", - "config-opts": [ - "--enable-library", - "--disable-manpages", - "--disable-udev", - "--disable-tools", - "--disable-cups", - "--disable-monitor", - "--disable-client", - "--disable-systemd", - "--disable-a2dp", - "--disable-avrcp", - "--disable-network", - "--with-dbusconfdir=/app/etc", - "--with-dbussessionbusdir=/app/usr/lib/system-services" - ], - "sources": [ - { - "type": "archive", - "url": "https://www.kernel.org/pub/linux/bluetooth/bluez-5.59.tar.xz", - "sha256": "046b95b386d0bfb2a16311fe799d517ee7735045512d89902c4ed701db477316", - "x-checker-data": { - "type": "anitya", - "project-id": 10029, - "url-template": "https://www.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz" - } - } - ] - }, - { - "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" - } - ] - }, - { - "name": "dolphin-emu", - "buildsystem": "cmake-ninja", - "config-opts": [ - "-DCMAKE_BUILD_TYPE=Release", - "-DENABLE_ALSA=OFF", - "-DENABLE_SDL=ON", - "-DENABLE_EVDEV=OFF", - "-DDISTRIBUTOR=Flathub" - ], - "build-options": { - "arch": { - "arm": { - "config-opts": [ - "-DENABLE_GENERIC=ON" - ] - } - } - }, - "cleanup": [ - "/share/man" - ], - "post-install": [ - "install -D dolphin-emu-wrapper /app/bin/dolphin-emu-wrapper", - "install -Dm644 appdata.xml /app/share/appdata/dolphin-emu.appdata.xml", - "sed -i -e 's/\"2048\"/\"512\"/g' /app/share/icons/hicolor/scalable/apps/dolphin-emu.svg", - "desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper' /app/share/applications/dolphin-emu.desktop" - ], - "sources": [ - { - "type": "git", - "url": "https://github.com/dolphin-emu/dolphin.git", - "commit": "acc7d3710d60552769f61f4b44bc8533a940df36" - }, - { - "type": "patch", - "path": "forcexdg.patch" - }, - { - "type": "patch", - "path": "nodirtyversion.patch" - }, - { - "type": "file", - "path": "appdata.xml" - }, - { - "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", - "dolphin-emu \"$@\"" - ], - "dest-filename": "dolphin-emu-wrapper" - } - ] - } - ] -} diff --git a/org.DolphinEmu.dolphin-emu.yml b/org.DolphinEmu.dolphin-emu.yml new file mode 100644 index 0000000..4e44411 --- /dev/null +++ b/org.DolphinEmu.dolphin-emu.yml @@ -0,0 +1,105 @@ +app-id: org.DolphinEmu.dolphin-emu +branch: stable +runtime: org.kde.Platform +runtime-version: '5.15' +sdk: org.kde.Sdk +command: dolphin-emu-wrapper +rename-desktop-file: dolphin-emu.desktop +rename-icon: dolphin-emu +rename-appdata-file: dolphin-emu.appdata.xml +finish-args: + - --device=all + - --filesystem=host:ro + - --socket=pulseaudio + - --socket=x11 + - --share=network + - --share=ipc + - --allow=bluetooth + - --filesystem=xdg-run/app/com.discordapp.Discord:create + - --talk-name=org.freedesktop.ScreenSaver +modules: + - name: libusb + config-opts: + - --disable-static + cleanup: + - /include + - /lib/*.la + - /lib/pkgconfig + sources: + - type: archive + url: https://github.com/libusb/libusb/releases/download/v1.0.24/libusb-1.0.24.tar.bz2 + sha256: 7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a + x-checker-data: + type: anitya + project-id: 1749 + url-template: https://github.com/libusb/libusb/releases/download/v$version/libusb-$version.tar.bz2 + + - name: bluez + config-opts: + - --enable-library + - --disable-manpages + - --disable-udev + - --disable-tools + - --disable-cups + - --disable-monitor + - --disable-client + - --disable-systemd + - --disable-a2dp + - --disable-avrcp + - --disable-network + - --with-dbusconfdir=/app/etc + - --with-dbussessionbusdir=/app/usr/lib/system-services + sources: + - type: archive + url: https://www.kernel.org/pub/linux/bluetooth/bluez-5.59.tar.xz + sha256: 046b95b386d0bfb2a16311fe799d517ee7735045512d89902c4ed701db477316 + x-checker-data: + type: anitya + project-id: 10029 + url-template: https://www.kernel.org/pub/linux/bluetooth/bluez-$version.tar.xz + + - 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 + + - name: dolphin-emu + buildsystem: cmake-ninja + config-opts: + - -DCMAKE_BUILD_TYPE=Release + - -DENABLE_ALSA=OFF + - -DENABLE_SDL=ON + - -DENABLE_EVDEV=OFF + - -DDISTRIBUTOR=Flathub + build-options: + arch: + arm: + config-opts: + - -DENABLE_GENERIC=ON + cleanup: + - /share/man + post-install: + - install -D dolphin-emu-wrapper /app/bin/dolphin-emu-wrapper + - install -Dm644 appdata.xml /app/share/appdata/dolphin-emu.appdata.xml + - sed -i -e 's/"2048"/"512"/g' /app/share/icons/hicolor/scalable/apps/dolphin-emu.svg + - desktop-file-edit --set-key=Exec --set-value='/app/bin/dolphin-emu-wrapper' + /app/share/applications/dolphin-emu.desktop + sources: + - type: git + url: https://github.com/dolphin-emu/dolphin.git + commit: acc7d3710d60552769f61f4b44bc8533a940df36 + - type: patch + path: forcexdg.patch + - type: patch + path: nodirtyversion.patch + - type: file + path: appdata.xml + - 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 + - dolphin-emu "$@" + dest-filename: dolphin-emu-wrapper