summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-10 12:23:13 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-12 16:08:16 +0000
commitea0ab94d67b05b0accbc20c1cd619e4addf30178 (patch)
tree423b30d06e63cb94f9fe448979958e7f951e6223
parentf040982c3df5003412ffc634d04f0eb03d7165a5 (diff)
downloadmana-ea0ab94d67b05b0accbc20c1cd619e4addf30178.tar.gz
mana-ea0ab94d67b05b0accbc20c1cd619e4addf30178.tar.bz2
mana-ea0ab94d67b05b0accbc20c1cd619e4addf30178.tar.xz
mana-ea0ab94d67b05b0accbc20c1cd619e4addf30178.zip
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.
-rw-r--r--snap/snapcraft.yaml59
1 files changed, 59 insertions, 0 deletions
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