Skip to content

Commit 77d1cc7

Browse files
committed
Copy snap configuration from chromium’s snapcraft.yaml
1 parent 5adc25b commit 77d1cc7

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

snap/snapcraft.yaml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,30 @@ parts:
2626
parse-info: [usr/share/appdata/mailspring.appdata.xml]
2727
stage-packages:
2828
- libxkbfile1
29+
stage:
30+
- -usr/lib/*/libsecret-*
2931

30-
cleanup:
31-
after: [mailspring]
32+
xdg-email:
3233
plugin: nil
33-
build-snaps: [core22, gnome-42-2204]
34+
override-pull: ''
3435
override-prime: |
3536
set -eux
36-
build_snaps="core22 gnome-42-2204"
37-
for snap in $build_snaps; do
38-
cd "/snap/$snap/current" && \
39-
find . -type f,l -exec rm -fv "$CRAFT_PRIME/{}" "$CRAFT_PRIME/usr/{}" \;
40-
done
41-
for CRUFT in bug lintian man; do
42-
rm -rf $CRAFT_PRIME/usr/share/$CRUFT
43-
done
44-
find $CRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete -print
45-
find $CRAFT_PRIME/usr/share -type d -empty -delete -print
37+
mkdir -p usr/bin
38+
cd usr/bin
39+
ln -s /usr/bin/xdg-open xdg-email
40+
41+
libsecret:
42+
source: https://gitlab.gnome.org/GNOME/libsecret.git
43+
source-depth: 1
44+
source-tag: '0.20.5'
45+
plugin: meson
46+
meson-parameters:
47+
- --prefix=/usr
48+
- -Dgtk_doc=false
49+
- -Dmanpage=false
50+
- -Dgcrypt=false
51+
stage:
52+
- usr/lib/*/libsecret-*
4653

4754
apps:
4855
mailspring:

0 commit comments

Comments
 (0)