Switch to new download format and enable documentation

This commit is contained in:
2025-11-10 16:02:11 +02:00
parent 2eb580c451
commit 95e7a43869
2 changed files with 16 additions and 9 deletions
+8 -1
View File
@@ -1,9 +1,16 @@
name: containers-common name: containers-common
description: Shared common files for containers description: Shared common files for containers
version: 0.64.1 version: 0.64.1
revision: 1 revision: 2
url: https://github.com/containers/common url: https://github.com/containers/common
license: Apache-2.0 license: Apache-2.0
architecture: any architecture: any
output_architecture: any output_architecture: any
type: source type: source
make_depends:
- go-md2man
downloads:
- url: https://github.com/containers/common/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 414def665a172a4d79366dc594e5313d43d672ba19009aa2a3dd78272e277506
+8 -8
View File
@@ -2,20 +2,20 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://github.com/containers/common/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz" # The build function is executed in the source directory
FILENAME="${DOWNLOAD##*/}" # This function is used to compile the source code
build() {
# The prepare function is executed in the root of the temp directory make PREFIX=/usr -C docs
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
install -Dm644 pkg/seccomp/seccomp.json "$BPM_OUTPUT"/usr/share/containers/seccomp.json install -Dm644 pkg/seccomp/seccomp.json "$BPM_OUTPUT"/usr/share/containers/seccomp.json
install -Dm644 pkg/config/containers.conf "$BPM_OUTPUT"/usr/share/containers/containers.conf
# Install documentation
make DESTDIR="$BPM_OUTPUT" PREFIX=/usr install -C docs
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/containers-common/LICENSE install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/containers-common/LICENSE
} }