Update package version to 1.3.2
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
name: runc
|
||||
description: CLI tool for spawning and running containers according to the OCI specification
|
||||
version: 1.3.1
|
||||
version: 1.3.2
|
||||
revision: 1
|
||||
url: https://github.com/opencontainers/runc
|
||||
license: Apache-2.0
|
||||
architecture: any
|
||||
depends: ["libseccomp"]
|
||||
make_depends: ["golang"]
|
||||
type: source
|
||||
depends:
|
||||
- libseccomp
|
||||
make_depends:
|
||||
- golang
|
||||
downloads:
|
||||
- url: https://github.com/opencontainers/runc/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||
no_extract: true
|
||||
filepath: runc.tar.gz
|
||||
checksum: 831d1ab47fe5eb1a29216593e1ced036c4306d012e5ef35fbf475dbbc8eab317
|
||||
|
||||
@@ -2,22 +2,18 @@
|
||||
# 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/opencontainers/runc/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
|
||||
# This function is used for putting downloaded files to the correct location or applying patches
|
||||
prepare() {
|
||||
mkdir -p "$BPM_SOURCE"/src/github.com/opencontainers/runc
|
||||
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"/src/github.com/opencontainers/runc
|
||||
tar -xvf runc.tar.gz --strip-components=1 -C "$BPM_SOURCE"/src/github.com/opencontainers/runc
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
cd "$BPM_SOURCE"/src/github.com/opencontainers/runc
|
||||
|
||||
export GOPATH="$BPM_SOURCE"
|
||||
make GOFLAGS="-trimpath -mod=readonly -modcacherw" BUILDTAGS="seccomp"
|
||||
}
|
||||
@@ -26,9 +22,12 @@ build() {
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd "$BPM_SOURCE"/src/github.com/opencontainers/runc
|
||||
|
||||
install -Dm755 runc "$BPM_OUTPUT"/usr/bin/runc
|
||||
|
||||
# Install bash completions
|
||||
install -Dm644 contrib/completions/bash/runc "$BPM_OUTPUT"/usr/share/bash-completion/completions/runc
|
||||
|
||||
# Install package license
|
||||
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/runc/LICENSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user