-
Notifications
You must be signed in to change notification settings - Fork 601
/
Copy pathsnapcraft.yaml
99 lines (96 loc) · 2.93 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
name: snapd
summary: Daemon and tooling that enable snap packages
description: |
Install, configure, refresh and remove snap packages. Snaps are
'universal' packages that work across many different Linux systems,
enabling secure distribution of the latest apps and utilities for
cloud, servers, desktops and the internet of things.
Start with 'snap list' to see installed snaps.
version: set-by-version-script-thxbye
version-script: |
./mkversion.sh --output-only
#FIXME: enable once snapcraft understands this
#type: snapd
grade: stable
# Note that this snap is unusual in that it has no "apps" section.
#
# It is started via re-exec on classic systems and via special
# handling in the core18 snap on Ubuntu Core Systems.
#
# Because snapd itself manages snaps it must currently run totally
# unconfined (even devmode is not enough).
#
# See the comments from jdstrand in
# https://forum.snapcraft.io/t/5547/10
parts:
snapd:
# FIXME: this should probably go upstream
plugin: x-builddeb
source: .
# xdelta is used to enable delta downloads (even if the host does not have it)
xdelta3:
plugin: nil
stage-packages:
- xdelta3
stage:
- usr/bin/*
- usr/lib/*
- lib/*
# squashfs-tools are used by `snap pack`
squashfs-tools:
plugin: nil
stage-packages:
- squashfs-tools
stage:
- usr/bin/*
- usr/lib/*
- lib/*
# liblzma5 is part of core but the snapd snap needs to run even without core
liblzma5:
plugin: nil
stage-packages:
- liblzma5
stage:
- lib/*
# libc6 is part of core but we need it in the snapd snap for
# CommandFromSystemSnap
libc6:
plugin: nil
stage-packages:
- libc6
- libc-bin
stage:
- lib/*
- usr/lib/*
- lib64/*
- etc/ld.so.conf
- etc/ld.so.conf.d/*
override-stage: |
snapcraftctl stage
# fix symlinks of ld.so to be relative
if [ "$(readlink -f lib64/ld-linux-x86-64.so.2)" = "/lib/x86_64-linux-gnu/ld-2.23.so" ]; then
ln -f -s ../lib/x86_64-linux-gnu/ld-2.23.so lib64/ld-linux-x86-64.so.2
fi
if [ "$(readlink -f lib64/ld64.so.2)" = "/lib/powerpc64le-linux-gnu/ld-2.23.so" ]; then
ln -f -s ../lib/powerpc64le-linux-gnu/ld-2.23.so lib64/ld64.so.2
fi
# the version in Ubuntu 16.04 (cache v6)
fontconfig-xenial:
plugin: nil
source: https://github.com/snapcore/fc-cache-static-builder.git
build: |
./build-from-security.py xenial
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp -a fc-cache-xenial $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v6
stage:
- bin/fc-cache-v6
# the version in Ubuntu 18.04 (cache v7)
fontconfig-bionic:
plugin: nil
source: https://github.com/snapcore/fc-cache-static-builder.git
build: |
./build-from-security.py bionic
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp -a fc-cache-bionic $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v7
stage:
- bin/fc-cache-v7