From 95e7a4386926037fab765422f4add848e9e85135 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 10 Nov 2025 14:46:55 +0200 Subject: [PATCH] Switch to new download format and enable documentation --- pkg.info | 9 ++++++++- source.sh | 16 ++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/pkg.info b/pkg.info index 332508d..62ec210 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,16 @@ name: containers-common description: Shared common files for containers version: 0.64.1 -revision: 1 +revision: 2 url: https://github.com/containers/common license: Apache-2.0 architecture: any output_architecture: any 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 diff --git a/source.sh b/source.sh index 8e9bd0a..51e81a3 100644 --- a/source.sh +++ b/source.sh @@ -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 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" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# 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 build function is executed in the source directory +# This function is used to compile the source code +build() { + make PREFIX=/usr -C docs } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { 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 }