HEX
Server: nginx/1.24.0
System: Linux ip-10-50-20-85 6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 x86_64
User: usefuloffices.org (1001)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //snap/core/current/snap/snapcraft.yaml
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