Sindbad~EG File Manager
name: core22
# version: "22"
adopt-info: bootstrap
summary: Runtime environment based on Ubuntu 22.04
description: |
The base snap based on the Ubuntu 22.04 release.
confinement: strict
type: base
build-base: core22
grade: stable
assumes: [snapd2.55.5]
parts:
probert-deb:
plugin: nil
build-packages:
- apt-utils
- devscripts
source: https://github.com/canonical/probert.git
source-type: git
# following branch core/jammy
source-commit: 94be2fa3f45e766ecee526fdc0c15f65a78667e6
override-pull: |
"${CRAFT_PROJECT_DIR}/build-package.sh" pull
override-build: |
"${CRAFT_PROJECT_DIR}/build-package.sh" build
override-stage: |
"${CRAFT_PROJECT_DIR}/build-package.sh" stage
prime:
- -local-debs
consoleconf-deb:
build-packages:
- apt-utils
- devscripts
plugin: nil
source: https://github.com/canonical/subiquity.git
source-type: git
# following branch core/jammy
source-commit: c6452b904798d94d8dea7d00bb84cefbb98e3238
override-pull: |
"${CRAFT_PROJECT_DIR}/build-package.sh" pull
override-build: |
"${CRAFT_PROJECT_DIR}/build-package.sh" build
override-stage: |
"${CRAFT_PROJECT_DIR}/build-package.sh" stage
prime:
- -local-debs
base:
plugin: nil
source: keyrings
build-packages:
- wget
build-environment:
- LTS: jammy
- BASE: ${LTS}-base-${CRAFT_TARGET_ARCH}.tar.gz
- DIR_URL: https://cdimage.ubuntu.com/ubuntu-base/${LTS}/daily/current
- URL: ${DIR_URL}/${BASE}
- SHA256: ${DIR_URL}/SHA256SUMS
- SIG: ${SHA256}.gpg
override-pull: |
craftctl default
wget "${SHA256}" "${SIG}" "${URL}"
gpg --no-default-keyring \
--keyring ./cd-image-keying.gpg \
--verify SHA256SUMS.gpg SHA256SUMS
awk -v "file=${BASE}" '$2=="*"file' SHA256SUMS | sha256sum -c
override-build: |
mkdir -p "${CRAFT_PART_INSTALL}/base"
tar -x --xattrs-include=* -f "${BASE}" -C "${CRAFT_PART_INSTALL}/base"
override-stage: |
rm -rf "${CRAFT_STAGE}/base"
craftctl default
override-prime: |
# Do nothing
splash-theme:
plugin: dump
source: https://github.com/snapcore/plymouth-theme-ubuntu-core.git
source-type: git
organize:
ubuntu-core: usr/share/plymouth/themes/ubuntu-core
copyright: usr/share/doc/plymouth-theme-ubuntu-core/copyright
stage:
- -README.md
bootstrap:
after:
- probert-deb
- consoleconf-deb
- base
plugin: make
source: .
build-packages:
- shellcheck
- distro-info
- python3-debian
- python3-requests
- python3-yaml
override-pull: |
craftctl set version="$(/bin/date +%Y%m%d)"
craftctl default
override-prime: |
craftctl default
# ensure build-in tests are run
cd ${CRAFT_PART_SRC} && make test TESTDIR=${CRAFT_PRIME}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists