-
Notifications
You must be signed in to change notification settings - Fork 3
/
snapcraft.yaml
67 lines (62 loc) · 2.01 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: gnome-logs
adopt-info: gnome-logs
summary: A log viewer for the systemd journal
description: |
Logs makes it easy to view and filter log messages and events.
Filter logs by category and importance to get the information you want. Use
the integrated search to get more relevant results.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core24
slots:
# for GtkApplication registration
gnome-logs:
interface: dbus
bus: session
name: org.gnome.Logs
apps:
gnome-logs:
extensions: [gnome]
command: usr/bin/gnome-logs
plugs:
- log-observe
- network
- home
desktop: usr/share/applications/org.gnome.Logs.desktop
common-id: org.gnome.Logs.desktop
parts:
gnome-logs:
source: https://gitlab.gnome.org/GNOME/gnome-logs.git
source-type: git
source-tag: 'gnome-logs-45.0'
source-depth: 1
# ext:updatesnap
# version-format:
# lower-than: '46'
# format: "gnome-logs-%M.%m"
plugin: meson
parse-info: [usr/share/metainfo/org.gnome.Logs.appdata.xml]
meson-parameters:
- --prefix=/usr
build-packages:
- libsystemd-dev
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=10 | sed -e s/gnome-logs-//g)
sed -i.bak -e 's|=org.gnome.Logs$|=${SNAP}/meta/gui/org.gnome.Logs.svg|g' data/org.gnome.Logs.desktop.in
sed -i.bak -e 's|symlink_media: true|symlink_media: false|g' help/meson.build
override-build: |
craftctl default
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp ../src/data/icons/scalable/org.gnome.Logs.svg $CRAFT_PART_INSTALL/meta/gui/
# Find files provided by the base and platform snap and ensure they aren't
# duplicated in this snap
cleanup:
after: [gnome-logs]
plugin: nil
build-snaps: [core24, gnome-46-2404]
override-prime: |
set -eux
for snap in "core24" "gnome-46-2404"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$CRAFT_PRIME/{}" \;
done