-
Notifications
You must be signed in to change notification settings - Fork 39
/
snapcraft.yaml
61 lines (55 loc) · 1.66 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
name: core
version: 16-2
version-script: |
# remember to keep version script in sync with "Makefile"
echo "16-$(grep ^VERSION= prime/usr/lib/snapd/info |cut -f2 -d=| sed s/~ubuntu.*// | cut -b1-29)-$(/bin/date +%Y%m%d)"
summary: snapd runtime environment
description: The core runtime environment for snapd
confinement: strict
type: os
grade: stable
parts:
check:
plugin: dump
override-pull: |
if ! apt-cache policy ubuntu-core-config|grep -Eq 'ppa\.launchpad(content)?\.net/snappy-dev/image'; then
echo "The ppa:snappy-dev/image PPA is missing."
echo "This probably means that the build was triggered incorrectly."
apt-cache policy ubuntu-core-config
exit 1
fi
hooks:
plugin: dump
source: hooks
organize:
configure: meta/hooks/configure
livebuild:
source: .
plugin: make
build-packages:
- livecd-rootfs
- shellcheck
- gawk
extra-files:
source: extra-files
plugin: dump
# 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