forked from ubuntu/gnome-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
100 lines (90 loc) · 2.97 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
name: gnome-recipes
adopt-info: gnome-recipes
base: core22
summary: GNOME loves to cook
description: |
Recipes is an easy-to-use application that will help you to discover what to cook
today, tomorrow, the rest of the week and for your special occasions.
Recipes comes with a collection of recipes that have been collected by GNOME contributors
from all over the world. It also lets you store your own recipes and share them with your
friends.
The major features of Recipes include:
* Add and edit your own recipes
* Share recipes with your friends
* Export and print shopping lists
* Adjust quantities based on the number of servings
* Mark recipes to cook later or add them to your favorites
* Add notes to recipes
* Hands-free cooking instruction mode
An easy-to-use application that will help you to discover what to cook
today, tomorrow, the rest of the week and for your special occasions.
grade: stable
confinement: strict # use 'strict' once you have the right plugs and slots
slots:
gnome-recipes:
interface: dbus
bus: session
name: org.gnome.Recipes
apps:
gnome-recipes:
extensions: [gnome]
command: usr/bin/gnome-recipes
desktop: usr/share/applications/org.gnome.Recipes.desktop
#plugs:
# - mount-observe
# - calendar-service
parts:
gnome-online-accounts:
# ext:updatesnap
# version-format:
# lower-than: '3.46'
# no-9x-revisions: true
source: https://gitlab.gnome.org/GNOME/gnome-online-accounts
source-type: git
source-tag: '3.45.2'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
build-packages:
- cmake
- libjavascriptcoregtk-4.1-dev
- libkrb5-dev
gnome-recipes:
# ext:updatesnap
after: [gnome-online-accounts]
source: https://github.com/GNOME/recipes.git
source-type: git
source-tag: '2.0.4'
source-depth: 1
plugin: meson
parse-info: [usr/share/metainfo/org.gnome.Recipes.appdata.xml]
meson-parameters:
- --prefix=/usr
- --buildtype=release
build-packages:
- libgnome-autoar-0-dev
stage-packages:
- libgnome-autoar-0-0
cleanup:
after: [ gnome-recipes ]
plugin: nil
build-snaps: [core22, gtk-common-themes, gnome-42-2204]
override-prime: |
set -eux
for snap in "core22" "gtk-common-themes" "gnome-42-2204"; do
cd "/snap/$snap/current" && find . -type f,l -name *.so.* -exec rm -f "$CRAFT_PRIME/{}" \;
done
# remove cross-installed repeated libraries (in /usr/lib in the SDK, but in /usr/lib/TRIPLET
# here, and the opposite)
for snap in "core22" "gnome-42-2204"; do
cd "/snap/$snap/current/usr/lib"
for filename in [ *.so* ]; do
rm -f "$CRAFT_PRIME/usr/lib/$CRAFT_ARCH_TRIPLET/$filename"
done
cd "/snap/$snap/current/usr/lib/$CRAFT_ARCH_TRIPLET"
for filename in [ *.so* ]; do
rm -f "$CRAFT_PRIME/usr/lib/$filename"
done
done