Skip to content

Commit

Permalink
Copy snap configuration from chromium’s snapcraft.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Nov 21, 2023
1 parent 5adc25b commit 77d1cc7
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,30 @@ parts:
parse-info: [usr/share/appdata/mailspring.appdata.xml]
stage-packages:
- libxkbfile1
stage:
- -usr/lib/*/libsecret-*

cleanup:
after: [mailspring]
xdg-email:
plugin: nil
build-snaps: [core22, gnome-42-2204]
override-pull: ''
override-prime: |
set -eux
build_snaps="core22 gnome-42-2204"
for snap in $build_snaps; do
cd "/snap/$snap/current" && \
find . -type f,l -exec rm -fv "$CRAFT_PRIME/{}" "$CRAFT_PRIME/usr/{}" \;
done
for CRUFT in bug lintian man; do
rm -rf $CRAFT_PRIME/usr/share/$CRUFT
done
find $CRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete -print
find $CRAFT_PRIME/usr/share -type d -empty -delete -print
mkdir -p usr/bin
cd usr/bin
ln -s /usr/bin/xdg-open xdg-email
libsecret:
source: https://gitlab.gnome.org/GNOME/libsecret.git
source-depth: 1
source-tag: '0.20.5'
plugin: meson
meson-parameters:
- --prefix=/usr
- -Dgtk_doc=false
- -Dmanpage=false
- -Dgcrypt=false
stage:
- usr/lib/*/libsecret-*

apps:
mailspring:
Expand Down

0 comments on commit 77d1cc7

Please sign in to comment.