Skip to content

Commit 3fafcf4

Browse files
Sergio Schvezovlengau
andauthored
chore: cleanup and update base to core22 (flameshot-org#3790)
* chore: cleanup and update base to core22 Signed-off-by: Sergio Schvezov <[email protected]> * fix: s/snapcraftctl/craftctl/ Co-authored-by: Alex Lowe <[email protected]> --------- Signed-off-by: Sergio Schvezov <[email protected]> Co-authored-by: Alex Lowe <[email protected]>
1 parent 729f494 commit 3fafcf4

File tree

1 file changed

+13
-40
lines changed

1 file changed

+13
-40
lines changed

snapcraft.yaml

Lines changed: 13 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22

33
name: flameshot
44
adopt-info: flameshot
5-
base: core20
5+
base: core22
66
summary: Powerful yet simple to use screenshot software
77
description: |
88
A powerful open source screenshot and annotation tool for Linux, Flameshot
99
has a varied set of markup tools available, which include Freehand drawing,
1010
Lines, Arrows, Boxes, Circles, Highlighting, Blur. Additionally, you can
1111
customise the color, size and/or thickness of many of these image annotation
1212
tools.
13-
grade: stable # must be 'stable' to release into candidate/stable channels
14-
confinement: strict # use 'strict' once you have the right plugs and slots
15-
#confinement: devmode # use 'strict' once you have the right plugs and slot
13+
grade: stable
14+
confinement: strict
1615
compression: lzo
1716
architectures:
1817
- build-on: amd64
1918

2019
apps:
2120
flameshot:
22-
command: usr/local/bin/flameshot
23-
desktop: usr/local/share/applications/org.flameshot.Flameshot.desktop
21+
command: usr/bin/flameshot
22+
desktop: usr/share/applications/org.flameshot.Flameshot.desktop
2423
extensions:
2524
- kde-neon
2625
environment:
@@ -33,55 +32,29 @@ apps:
3332
- removable-media
3433
- network
3534
- network-bind
36-
- opengl
37-
- x11
38-
- wayland
39-
- desktop
40-
- desktop-legacy
41-
- unity7
4235

4336
parts:
4437
flameshot:
45-
build-snaps:
46-
- kde-frameworks-5-99-qt-5-15-7-core20
4738
source: https://github.com/flameshot-org/flameshot.git
4839
plugin: cmake
4940
cmake-parameters:
50-
- -DFLAMESHOT_ICON=/snap/flameshot/current/usr/local/share/icons/hicolor/scalable/apps/flameshot.svg
51-
# This cannot be enabled until the KF5 toolkit in the snap is updated
52-
#- -DUSE_WAYLAND_CLIPBOARD=1
41+
- -DFLAMESHOT_ICON=/snap/flameshot/current/usr/share/icons/hicolor/scalable/apps/flameshot.svg
42+
- -DCMAKE_INSTALL_PREFIX=/usr
43+
- -DUSE_WAYLAND_CLIPBOARD=1
5344
source-type: git
5445
override-pull: |
55-
snapcraftctl pull
46+
craftctl default
5647
# remove release candidates
5748
last_committed_tag="$(git tag -l --sort=-v:refname | grep -v rc | head -1)"
5849
git_revno="$(git rev-list $(git describe --tags --abbrev=0)..HEAD --count)"
5950
git_hash="$(git rev-parse --short HEAD)"
6051
snapcraftctl set-version "${last_committed_tag}+git${git_revno}.${git_hash}"
6152
override-build: |
62-
snapcraftctl build
53+
craftctl default
6354
# Correct the Icon path
64-
sed -i 's|^Exec=flameshot|Exec=/snap/bin/org.flameshot.Flameshot|' ${SNAPCRAFT_PART_INSTALL}/usr/local/share/applications/org.flameshot.Flameshot.desktop
65-
sed -i 's|^Icon=.*|Icon=${SNAP}/usr/local/share/icons/hicolor/scalable/apps/org.flameshot.Flameshot.svg|' ${SNAPCRAFT_PART_INSTALL}/usr/local/share/applications/org.flameshot.Flameshot.desktop
66-
sed -i 's/^\(Name\(\[.\+\]\)\?=.*\)$/\1 (Snappy Edition)/g' ${SNAPCRAFT_PART_INSTALL}/usr/local/share/applications/org.flameshot.Flameshot.desktop
67-
build-packages:
68-
- g++
69-
- make
70-
- qt5-default
71-
- git
72-
stage-packages:
73-
- dbus-x11
74-
- libgtk2.0-0
75-
- openssl
76-
- ca-certificates
77-
- libxkbcommon0
78-
- ttf-ubuntu-font-family
79-
- dmz-cursor-theme
80-
- light-themes
81-
- adwaita-icon-theme
82-
- gnome-themes-standard
83-
- shared-mime-info
84-
- libgdk-pixbuf2.0-0
55+
sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/org.flameshot.Flameshot.svg|' ${CRAFT_PART_INSTALL}/usr/share/applications/org.flameshot.Flameshot.desktop
56+
sed -i 's/^\(Name\(\[.\+\]\)\?=.*\)$/\1 (Snap Edition)/g' ${CRAFT_PART_INSTALL}/usr/share/applications/org.flameshot.Flameshot.desktop
57+
8558
slots:
8659
# Depending on in which environment we're running we either need
8760
# to use the system or session DBus so we also need to have one

0 commit comments

Comments
 (0)