-
Notifications
You must be signed in to change notification settings - Fork 20
/
snapcraft.yaml
109 lines (102 loc) · 3.22 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
name: savedesktop
grade: stable
adopt-info: savedesktop
license: GPL-3.0+
icon: flatpak/icons/io.github.vikdevelop.SaveDesktop.svg
base: core24
confinement: strict
plugs:
dot-config:
interface: personal-files
write:
- $HOME/.config
dot-local:
interface: personal-files
write:
- $HOME/.local
dot-themes:
interface: personal-files
write:
- $HOME/.themes
dot-icons:
interface: personal-files
write:
- $HOME/.icons
dot-fonts:
interface: personal-files
write:
- $HOME/.fonts
#DE specific
dot-xfce4:
interface: personal-files
write:
- $HOME/.xfce4
dot-cinnamon:
interface: personal-files
write:
- $HOME/.cinnamon
platforms:
amd64:
build-on: [amd64]
arm64:
build-on: [arm64]
armhf:
build-on: [armhf]
layout:
/usr/share/gvfs:
bind: $SNAP/usr/share/gvfs
apps:
savedesktop:
extensions: [gnome]
command: usr/bin/savedesktop
desktop: usr/share/applications/io.github.vikdevelop.SaveDesktop.desktop
common-id: io.github.vikdevelop.SaveDesktop.desktop
plugs:
- home
- network
- login-session-control
parts:
dconf:
source: https://gitlab.gnome.org/GNOME/dconf.git
plugin: meson
meson-parameters:
- --prefix=/usr
- -Dbash_completion=false
- -Dman=false
- -Dvapi=false
prime:
- -usr/lib/systemd
- -usr/lib/*/pkgconfig
- -usr/include
savedesktop:
source: https://github.com/vikdevelop/SaveDesktop.git
source-tag: '3.5'
source-depth: 1
plugin: nil
override-build: |
set -eux
install -Dm755 -t $CRAFT_PART_INSTALL/usr $CRAFT_PART_SRC/src/*
install -D -t $CRAFT_PART_INSTALL/usr/share/applications $CRAFT_PART_SRC/flatpak/io.github.vikdevelop.SaveDesktop.desktop
install -D -t $CRAFT_PART_INSTALL/usr/share/icons/hicolor/scalable/apps $CRAFT_PART_SRC/flatpak/icons/io.github.vikdevelop.SaveDesktop.svg
install -D -t $CRAFT_PART_INSTALL/usr/share/icons/hicolor/128x128/apps $CRAFT_PART_SRC/flatpak/symbolic-icons/exclamation_mark.png
install -D -t $CRAFT_PART_INSTALL/usr/share/icons/hicolor/128x128/apps $CRAFT_PART_SRC/flatpak/symbolic-icons/desktop-symbolic.svg
install -D -t $CRAFT_PART_INSTALL/usr/share/icons/hicolor/128x128/apps $CRAFT_PART_SRC/flatpak/symbolic-icons/list-view.png
install -D -t $CRAFT_PART_INSTALL/usr/share/icons/hicolor/128x128/apps $CRAFT_PART_SRC/flatpak/symbolic-icons/done.svg
install -D -t $CRAFT_PART_INSTALL/usr/share/metainfo $CRAFT_PART_SRC/flatpak/io.github.vikdevelop.SaveDesktop.metainfo.xml
install -D -t $CRAFT_PART_INSTALL/usr/share/glib-2.0/schemas $CRAFT_PART_SRC/flatpak/io.github.vikdevelop.SaveDesktop.gschema.xml
glib-compile-schemas $CRAFT_PART_INSTALL/usr/share/glib-2.0/schemas
cp -R $CRAFT_PART_SRC/translations $CRAFT_PART_INSTALL/usr/
install -Dm755 -t $CRAFT_PART_INSTALL/usr/bin $CRAFT_PART_SRC/savedesktop
parse-info: [ usr/share/metainfo/io.github.vikdevelop.SaveDesktop.metainfo.xml ]
deps:
after: [ dconf, savedesktop ]
plugin: nil
stage-packages:
- wget
- libnotify-bin
- zip
- coreutils
stage:
- usr/bin/notify-send
- usr/bin/wget
- usr/bin/zip