mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-06 06:17:11 +02:00
36 lines
901 B
YAML
36 lines
901 B
YAML
name: pcre2
|
|
variant: scratch
|
|
shell: /bin/bash
|
|
dependencies:
|
|
- stage: base
|
|
steps:
|
|
- sources:
|
|
- url: https://github.com/PCRE2Project/pcre2/releases/download/pcre2-{{ .PCRE2_VERSION }}/pcre2-{{ .PCRE2_VERSION }}.tar.bz2
|
|
destination: pcre2.tar.bz2
|
|
sha256: {{ .PCRE2_SHA256 }}
|
|
sha512: {{ .PCRE2_SHA512 }}
|
|
prepare:
|
|
- |
|
|
tar -xf pcre2.tar.bz2 --strip-components=1
|
|
rm pcre2.tar.bz2
|
|
build:
|
|
- |
|
|
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make -j $(nproc)
|
|
install:
|
|
- |
|
|
make DESTDIR=/rootfs install
|
|
sbom:
|
|
outputPath: /rootfs/usr/local/share/spdx/pcre2.spdx.json
|
|
version: {{ .PCRE2_VERSION }}
|
|
cpes:
|
|
- cpe:2.3:a:pcre:pcre2:{{ .CONTAINER_TOOLKIT_VERSION }}:*:*:*:*:*:*:*
|
|
licenses:
|
|
- BSD-2-Clause
|
|
finalize:
|
|
- from: /rootfs
|
|
to: /
|