-
Notifications
You must be signed in to change notification settings - Fork 10
/
snapcraft.yaml
75 lines (70 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
68
69
70
71
72
73
74
75
name: cheese
adopt-info: cheese
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core24
issues: https://github.com/ubuntu/cheese/issues
contact: https://github.com/ubuntu/cheese/issues
slots:
# for GtkApplication registration
cheese:
interface: dbus
bus: session
name: org.gnome.Cheese
apps:
cheese:
extensions: [ gnome ]
command: usr/bin/cheese
desktop: usr/share/applications/org.gnome.Cheese.desktop
plugs:
- audio-playback
- camera
- home
environment:
DISABLE_WAYLAND: 'true'
parts:
cheese:
source: https://gitlab.gnome.org/GNOME/cheese.git
source-type: git
source-tag: '44.1'
# ext:updatesnap
# version-format:
# lower-than: 46.0
source-depth: 1
parse-info: [usr/share/metainfo/org.gnome.Cheese.appdata.xml]
override-build: |
sed -i.bak -e 's|=org.gnome.Cheese$|=${SNAP}/meta/gui/org.gnome.Cheese.svg|g' $CRAFT_PART_SRC/data/org.gnome.Cheese.desktop.in
craftctl default
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp $CRAFT_PART_SRC/data/icons/scalable/org.gnome.Cheese.svg $CRAFT_PART_INSTALL/meta/gui/
plugin: meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
- -Dgtk_doc=false
- -Dman=false
build-packages:
- gnome-video-effects-dev
- libcanberra-gtk3-dev
- libclutter-gst-3.0-dev
- libgstreamer-plugins-bad1.0-dev
- cmake
- libgnome-desktop-3-dev
stage-packages:
- gnome-video-effects
- libclutter-gst-3.0-0
libraries:
plugin: nil
prime:
- "-*"
# Find files provided by the base and platform snap and ensure they aren't
# duplicated in this snap
cleanup:
after: [libraries]
plugin: nil
build-snaps: [core24, gtk-common-themes, gnome-46-2404]
override-prime: |
set -eux
for snap in "core24" "gtk-common-themes" "gnome-46-2404"; do
cd "/snap/$snap/current" && find . -type f,l -name *.so.* -exec rm -f "$CRAFT_PRIME/{}" \;
done