-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
102 lines (93 loc) · 3.77 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
name: authenticator-joc
adopt-info: authenticator
grade: stable
confinement: strict
base: core18
passthrough:
license: GPL-3.0+
plugs:
gnome-3-32-1804:
interface: content
target: $SNAP/gnome-platform
default-provider: gnome-3-32-1804
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes
slots:
# for GtkApplication registration
authenticator:
interface: dbus
bus: session
name: com.github.bilelmoussaoui.Authenticator
apps:
authenticator:
command: bin/desktop-launch $SNAP/usr/bin/authenticator
desktop: usr/share/applications/com.github.bilelmoussaoui.Authenticator.desktop
common-id: com.github.bilelmoussaoui.Authenticator.desktop
plugs:
- desktop
- desktop-legacy
- gsettings
- wayland
- x11
- password-manager-service
- network
environment:
PYTHONPATH: $SNAP/gnome-platform/usr/lib/python3.6/site-packages:$SNAP/lib/python3.6/site-packages
LD_LIBRARY_PATH: $SNAP/gnome-platform/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/gnome-platform/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/gnome-platform/usr/lib:$SNAP/gnome-platform/usr/lib/vala-current:$LD_LIBRARY_PATH
parts:
desktop-gnome-platform:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-depth: 1
source-subdir: gtk
plugin: make
make-parameters: [ "FLAVOR=gtk3" ]
build-environment: &buildenv
- PATH: /snap/gnome-3-32-1804-sdk/current/usr/bin:$PATH
- XDG_DATA_DIRS: /snap/gnome-3-32-1804-sdk/current/usr/share:/usr/share:$XDG_DATA_DIRS
- LD_LIBRARY_PATH: /snap/gnome-3-32-1804-sdk/current/lib/$SNAPCRAFT_ARCH_TRIPLET:/snap/gnome-3-32-1804-sdk/current/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:/snap/gnome-3-32-1804-sdk/current/usr/lib:/snap/gnome-3-32-1804-sdk/current/usr/lib/vala-current:$LD_LIBRARY_PATH
- PKG_CONFIG_PATH: /snap/gnome-3-32-1804-sdk/current/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pkgconfig:/snap/gnome-3-32-1804-sdk/current/usr/lib/pkgconfig:/snap/gnome-3-32-1804-sdk/current/usr/share/pkgconfig:$PKG_CONFIG_PATH
- GETTEXTDATADIRS: /snap/gnome-3-32-1804-sdk/current/usr/share/gettext-current:$GETTEXTDATADIRS
- GDK_PIXBUF_MODULE_FILE: /snap/gnome-3-32-1804-sdk/current/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gdk-pixbuf-current/loaders.cache
build-snaps: [ gnome-3-32-1804-sdk/latest/stable ]
override-build: |
snapcraftctl build
mkdir -pv $SNAPCRAFT_PART_INSTALL/gnome-platform
authenticator-python:
plugin: python
source: https://gitlab.gnome.org/World/Authenticator.git
source-tag: '3.32.2'
source-depth: 1
requirements:
- requirements.txt
stage-packages:
- python3-gi
- gir1.2-secret-1
after: [desktop-gnome-platform]
authenticator:
plugin: meson
meson-version: "0.50.0"
source: https://gitlab.gnome.org/World/Authenticator.git
source-tag: '3.32.2'
parse-info: [usr/share/metainfo/com.github.bilelmoussaoui.Authenticator.appdata.xml]
source-depth: 1
build-environment: *buildenv
meson-parameters:
- --prefix=/snap/authenticator-joc/current/usr
organize:
snap/authenticator-joc/current/usr: usr
override-build: |
sed -i -e 's|Icon=@APP_ID@$|Icon=${SNAP}/meta/gui/com.github.bilelmoussaoui.Authenticator.svg|g' data/com.github.bilelmoussaoui.Authenticator.desktop.in.in
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
cp ../src/data/icons/hicolor/scalable/apps/com.github.bilelmoussaoui.Authenticator.svg $SNAPCRAFT_PART_INSTALL/meta/gui/
after: [authenticator-python]