-
Notifications
You must be signed in to change notification settings - Fork 6
/
snapcraft.yaml
129 lines (122 loc) · 2.89 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
127
name: i2pbrowser
version: '0.05b'
summary: I2P Browser Launcher
base: core18
description: |
This snap contains a script which automatically configures and launches a
Firefox browser configured for i2p.
apps:
i2pbrowser:
command: desktop-launch $SNAP/usr/bin/I2PBrowser.sh
desktop: usr/share/applications/i2pbrowser-firefox.desktop
plugs:
- network
- desktop
- desktop-legacy
- home
- x11
- wayland
- mir
- browser-support
- pulseaudio
- alsa
#environment:
#DISPLAY: 0
private:
command: desktop-launch $SNAP/usr/bin/I2PBrowser-Private.sh
desktop: usr/share/applications/i2pbrowser-firefox-private.desktop
plugs:
- network
- desktop
- desktop-legacy
- home
- x11
- wayland
- mir
- browser-support
- pulseaudio
- alsa
#environment:
#DISPLAY: 0
debug:
command: desktop-launch $SNAP/usr/bin/I2PBrowser-Debug.sh
desktop: usr/share/applications/i2pbrowser-firefox-debug.desktop
plugs:
- network
- desktop
- desktop-legacy
- home
- x11
- wayland
- mir
- browser-support
- pulseaudio
- alsa
#environment:
#DISPLAY: 0
grade: stable
confinement: strict
parts:
desktop-gtk:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: gtk
plugin: make
make-parameters: ["FLAVOR=gtk2"]
build-packages:
- libgtk2.0-dev
- libgtk-3-dev
stage-packages:
- libxkbcommon0 # XKB_CONFIG_ROOT
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libgtk2.0-0
- libgtk-3-0
- libgdk-pixbuf2.0-0
- libglib2.0-bin
- libgtk2.0-bin
- libgtk-3-bin
- unity-gtk2-module
- unity-gtk3-module
- libappindicator3-1
- locales-all
- xdg-user-dirs
- ibus-gtk
- ibus-gtk3
- libibus-1.0-5
after: [desktop-patch]
override-pull: |
snapcraftctl pull
patch -Np1 < $SNAPCRAFT_STAGE/desktop-launch.patch
organize:
usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gtk-2.0: usr/lib/gtk-2.0
usr/lib/$SNAPCRAFT_ARCH_TRIPLET/gtk-3.0: usr/lib/gtk-3.0
desktop-patch:
source: patches
plugin: dump
prime: [-*]
i2pbrowser:
after: [desktop-gtk3]
source: https://github.com/eyedeekay/firefox.profile.i2p.git
source-subdir: "."
plugin: make
make-parameters:
- DESTDIR=$SNAPCRAFT_PART_INSTALL
- SNAP_USER_COMMON=$SNAP_USER_COMMON
- SNAP_USER_DATA=$SNAP_USER_DATA
- install-extensions-syswide
- install-snap-commondir
- install
stage:
- .
prime:
- .
stage-packages:
- firefox
- libgtkextra-dev
- libpng-dev
- libgtk-3-dev
- libgdk-pixbuf2.0-dev