-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
127 lines (118 loc) · 3.24 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: gnome-break-timer
adopt-info: gnome-break-timer
type: app
grade: stable
confinement: strict
base: core18
apps:
daemon:
autostart: org.gnome.BreakTimer.desktop
command: desktop-launch gnome-break-timer-wrapper.sh daemon
extensions: [gnome-3-34]
plugs:
- desktop
- desktop-legacy
- wayland
- x11
- audio-playback
- gsettings
- screen-inhibit-control
slots:
- daemon-dbus
settings:
common-id: org.gnome.BreakTimer
desktop: usr/share/applications/org.gnome.BreakTimer.Settings.desktop
command: desktop-launch gnome-break-timer-wrapper.sh settings
extensions: [gnome-3-34]
plugs:
- desktop
- desktop-legacy
- wayland
- x11
- audio-playback
- gsettings
slots:
- settings-dbus
architectures:
- build-on: s390x
- build-on: ppc64el
- build-on: arm64
- build-on: armhf
- build-on: amd64
- build-on: i386
parts:
libcanberra:
source: git://git.0pointer.de/libcanberra
source-type: git
plugin: autotools
configflags:
- --prefix=/snap/gnome-break-timer/current/usr
- --enable-pulse
- --enable-gstreamer
- --enable-gtk3
- --enable-alsa
- --disable-oss
organize:
snap/gnome-break-timer/current/usr: usr
build-packages:
- libltdl-dev
- libasound2-dev
- libvorbis-dev
- libtdb-dev
- libpulse-dev
- libgstreamer1.0-dev
- libudev-dev
- gtk-doc-tools
gsound:
after: [libcanberra]
source: https://gitlab.gnome.org/GNOME/gsound.git
source-type: git
plugin: autotools
configflags:
- --prefix=/snap/gnome-break-timer/current/usr
- --disable-Werror
organize:
snap/gnome-break-timer/current/usr: usr
build-packages:
- autoconf-archive
- intltool
- libgirepository1.0-dev
gnome-break-timer:
after: [gsound]
source-type: git
source: https://gitlab.gnome.org/GNOME/gnome-break-timer.git
source-branch: master
plugin: meson
meson-parameters:
- --prefix=/snap/gnome-break-timer/current/usr
parse-info:
- usr/share/metainfo/org.gnome.BreakTimer.metainfo.xml
organize:
snap/gnome-break-timer/current/usr: usr
override-build: |
sed -i.bak -e 's|=@APPLICATION_ID@$|=${SNAP}/meta/gui/@[email protected]|g' data/applications/org.gnome.BreakTimer.Settings.desktop.in.in
sed -i.bak -e 's|=@APPLICATION_ID@$|=${SNAP}/meta/gui/@[email protected]|g' data/applications/org.gnome.BreakTimer.Daemon.desktop.in.in
snapcraftctl build
mkdir -p ${SNAPCRAFT_PART_INSTALL}/meta/gui
cp data/icons/hicolor/scalable/apps/org.gnome.BreakTimer.svg ${SNAPCRAFT_PART_INSTALL}/meta/gui/org.gnome.BreakTimer.svg
cp data/icons/hicolor/symbolic/apps/org.gnome.BreakTimer-symbolic.svg ${SNAPCRAFT_PART_INSTALL}/meta/gui/org.gnome.BreakTimer-symbolic.svg
build-packages:
- appstream
- appstream-util
- desktop-file-utils
- gettext
snap-gnome-break-timer-sh:
source-type: local
source: src
plugin: nil
override-build: |
install -m755 -D -t ${SNAPCRAFT_PART_INSTALL}/usr/bin snap-gnome-break-timer.sh
slots:
daemon-dbus:
interface: dbus
bus: session
name: org.gnome.BreakTimer
settings-dbus:
interface: dbus
bus: session
name: org.gnome.BreakTimer.Settings