From ea0ab94d67b05b0accbc20c1cd619e4addf30178 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 10 Apr 2024 12:23:13 +0200 Subject: Added snap recipe snapcraft.io is now connected to https://github.com/mana/mana and will automaticaly build the mana snap and publish it to the edge channel. There are two known issues at this point: * The snap prints: /usr/share/libdrm/amdgpu.ids: No such file or directory on startup. So far I was unable to figure out a fix for it and I also don't know if it actually causes any problems. * Translations do not appear to work. --- snap/snapcraft.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..49ae3e0b --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,59 @@ +name: mana +version: git +adopt-info: mana +base: core22 + +grade: stable +confinement: strict + +assumes: + - command-chain + +apps: + mana: + command: usr/bin/mana + command-chain: + - snap/command-chain/desktop-launch + desktop: usr/share/applications/org.manasource.Mana.desktop + extensions: [gnome] + plugs: + - audio-playback + - home + - network + - opengl + +layout: + /usr/share/mana: + symlink: $SNAP/usr/share/mana + +parts: + mana: + plugin: cmake + cmake-parameters: + - -DCMAKE_BUILD_TYPE=Release + - -DCMAKE_INSTALL_PREFIX=/usr + parse-info: + - usr/share/metainfo/org.manasource.Mana.metainfo.xml + source: . + build-packages: + - build-essential + - gettext + - libcurl4-openssl-dev + - libguichan-dev + - libphysfs-dev + - libpng-dev + - libsdl2-dev + - libsdl2-image-dev + - libsdl2-mixer-dev + - libsdl2-net-dev + - libsdl2-ttf-dev + - libxml2-dev + stage-packages: + - libcurl4 + - libguichan-0.8.1-1v5 + - libphysfs1 + - libsdl2-2.0-0 + - libsdl2-image-2.0-0 + - libsdl2-mixer-2.0-0 + - libsdl2-net-2.0-0 + - libsdl2-ttf-2.0-0 -- cgit v1.2.3-70-g09d2