diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-11-14 02:37:30 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-11-14 02:37:30 +0100 |
commit | 898ff5665c89266889cd1e9a85fad73a5415a1ba (patch) | |
tree | 808bff8281ff10aa806cf2c9a4bf95fa7942d753 | |
parent | f6096c1762cffc7ee23f70dbdb70b79a90b1c4e1 (diff) | |
download | messenger-gtk-898ff5665c89266889cd1e9a85fad73a5415a1ba.tar.gz messenger-gtk-898ff5665c89266889cd1e9a85fad73a5415a1ba.zip |
Simplify snap configuration reducing work-arounds
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | snap/snapcraft.yaml | 64 |
1 files changed, 22 insertions, 42 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f4df4fd..1f95431 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml | |||
@@ -20,13 +20,21 @@ description: | | |||
20 | 20 | ||
21 | Chats will generally created as opt-in. So you can decide who may contact you directly and who does not, accepting to a direct chat. Leaving a chat is also always possible. | 21 | Chats will generally created as opt-in. So you can decide who may contact you directly and who does not, accepting to a direct chat. Leaving a chat is also always possible. |
22 | adopt-info: messenger-gtk | 22 | adopt-info: messenger-gtk |
23 | icon: resources/icon/full_color.svg | ||
23 | grade: stable | 24 | grade: stable |
24 | confinement: strict | 25 | confinement: strict |
25 | base: core22 | 26 | base: core22 |
26 | icon: resources/icon/full_color.svg | 27 | |
28 | slots: | ||
29 | messenger-gtk: | ||
30 | interface: dbus | ||
31 | bus: session | ||
32 | name: org.gnunet.Messenger | ||
33 | |||
27 | apps: | 34 | apps: |
28 | messenger-gtk: | 35 | messenger-gtk: |
29 | command: bin/desktop-launch $SNAP/usr/bin/messenger-gtk | 36 | command: usr/bin/messenger-gtk |
37 | extensions: [gnome] | ||
30 | plugs: | 38 | plugs: |
31 | - desktop | 39 | - desktop |
32 | - desktop-legacy | 40 | - desktop-legacy |
@@ -39,6 +47,8 @@ apps: | |||
39 | - audio-playback | 47 | - audio-playback |
40 | - audio-record | 48 | - audio-record |
41 | - gsettings | 49 | - gsettings |
50 | desktop: usr/share/applications/org.gnunet.Messenger.desktop | ||
51 | common-id: org.gnunet.Messenger.desktop | ||
42 | 52 | ||
43 | plugs: | 53 | plugs: |
44 | gtk-3-themes: | 54 | gtk-3-themes: |
@@ -55,41 +65,7 @@ plugs: | |||
55 | default-provider: gtk-common-themes | 65 | default-provider: gtk-common-themes |
56 | 66 | ||
57 | parts: | 67 | parts: |
58 | desktop-gtk3: | ||
59 | build-packages: | ||
60 | - build-essential | ||
61 | - libc6-dev | ||
62 | - libgtk-3-dev | ||
63 | - dpkg-dev | ||
64 | make-parameters: | ||
65 | - FLAVOR=gtk3 | ||
66 | plugin: make | ||
67 | source: https://github.com/ubuntu/snapcraft-desktop-helpers.git | ||
68 | source-subdir: gtk | ||
69 | stage-packages: | ||
70 | - dmz-cursor-theme | ||
71 | - light-themes | ||
72 | - adwaita-icon-theme | ||
73 | - sound-theme-freedesktop | ||
74 | - gnome-themes-standard | ||
75 | - gnome-icon-theme | ||
76 | - fonts-emojione | ||
77 | - shared-mime-info | ||
78 | - locales-all | ||
79 | - xdg-user-dirs | ||
80 | - gobject-introspection | ||
81 | - libxcursor1 | ||
82 | - libgtk2.0-0 | ||
83 | - libgtk-3-0 | ||
84 | - libevent-2.1-7 | ||
85 | - libltdl7 | ||
86 | - libc6 | ||
87 | - libgdk-pixbuf-2.0-0 | ||
88 | - libcanberra-gtk-module | ||
89 | - libcanberra-gtk3-module | ||
90 | - locales-all | ||
91 | gnunet: | 68 | gnunet: |
92 | after: [ desktop-gtk3 ] | ||
93 | build-packages: | 69 | build-packages: |
94 | - build-essential | 70 | - build-essential |
95 | - libc6-dev | 71 | - libc6-dev |
@@ -139,7 +115,7 @@ parts: | |||
139 | done | 115 | done |
140 | rm -r snap_fix | 116 | rm -r snap_fix |
141 | messenger-gtk: | 117 | messenger-gtk: |
142 | after: [ desktop-gtk3, gnunet, libgnunetchat ] | 118 | after: [ gnunet, libgnunetchat ] |
143 | build-packages: | 119 | build-packages: |
144 | - build-essential | 120 | - build-essential |
145 | - libc6-dev | 121 | - libc6-dev |
@@ -152,6 +128,7 @@ parts: | |||
152 | - libgstreamer1.0-dev | 128 | - libgstreamer1.0-dev |
153 | - libgstreamer-plugins-base1.0-dev | 129 | - libgstreamer-plugins-base1.0-dev |
154 | - desktop-file-utils | 130 | - desktop-file-utils |
131 | - libffi7 | ||
155 | stage-packages: | 132 | stage-packages: |
156 | - libglib2.0-0 | 133 | - libglib2.0-0 |
157 | - libhandy-1-0 | 134 | - libhandy-1-0 |
@@ -164,6 +141,13 @@ parts: | |||
164 | - gir1.2-handy-1 | 141 | - gir1.2-handy-1 |
165 | - gir1.2-pango-1.0 | 142 | - gir1.2-pango-1.0 |
166 | - locales | 143 | - locales |
144 | - gstreamer1.0-plugins-base | ||
145 | - gstreamer1.0-plugins-bad | ||
146 | - gstreamer1.0-plugins-good | ||
147 | - gstreamer1.0-gtk3 | ||
148 | - libglu1-mesa | ||
149 | - freeglut3 | ||
150 | - libltdl7 | ||
167 | source: http://ftpmirror.gnu.org/gnunet/messenger-gtk-0.7.0.tar.gz | 151 | source: http://ftpmirror.gnu.org/gnunet/messenger-gtk-0.7.0.tar.gz |
168 | plugin: make | 152 | plugin: make |
169 | override-build: | | 153 | override-build: | |
@@ -174,8 +158,4 @@ parts: | |||
174 | mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/share/applications" | 158 | mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/share/applications" |
175 | mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/share/appdata" | 159 | mkdir -p "$SNAPCRAFT_PART_INSTALL/usr/share/appdata" |
176 | export INSTALL_DIR="$SNAPCRAFT_PART_INSTALL/usr/" | 160 | export INSTALL_DIR="$SNAPCRAFT_PART_INSTALL/usr/" |
177 | make install | 161 | make install \ No newline at end of file |
178 | override-prime: | | ||
179 | snapcraftctl prime | ||
180 | rm -f "usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libc_malloc_debug.so" | ||
181 | ln -s libc_malloc_debug.so.0 "usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libc_malloc_debug.so" | ||