From 0d46b7b77eb4c3b866f393dca7b298f1673ae772 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 13 Jun 2026 19:58:53 +0300 Subject: [PATCH] Switch to new package format --- pkg.info => info.yml | 4 ++-- source.sh => recipe.sh | 15 ++++----------- 2 files changed, 6 insertions(+), 13 deletions(-) rename pkg.info => info.yml (96%) rename source.sh => recipe.sh (64%) diff --git a/pkg.info b/info.yml similarity index 96% rename from pkg.info rename to info.yml index ef6d795..198b3a9 100644 --- a/pkg.info +++ b/info.yml @@ -1,7 +1,7 @@ name: boost description: Collection of high-quality and peer-reviewed libraries that aims to make C++ development highly productive version: 1.91.0_1 -revision: 2 +revision: 3 url: https://www.boost.org/ license: BSL-1.0 maintainers: @@ -10,7 +10,7 @@ architecture: any type: source depends: - bzip2 - - icu + - icu=78.* - zlib - zstd make_depends: diff --git a/source.sh b/recipe.sh similarity index 64% rename from source.sh rename to recipe.sh index 2b8010c..b9c27d2 100644 --- a/source.sh +++ b/recipe.sh @@ -1,19 +1,12 @@ -# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package # 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 # The build function is executed in the source directory # This function is used to compile the source code build() { - ./bootstrap.sh --prefix="$BPM_OUTPUT"/usr --with-python=python3 - ./b2 stage -j$(nproc) threading=multi link=shared -} - -# The check function is executed in the source directory -# This function is used to run tests to verify the package has been compiled correctly -check() { - cd tools/build/test - python3 test_all.py + ./bootstrap.sh --prefix="$BPM_OUTPUT"/usr --with-toolset=gcc --with-icu --with-python=python3 + ./b2 stage -j$(nproc) variant=release threading=multi link=shared toolset=gcc cflags="$CPPFLAGS $CFLAGS" cxxflags="$CPPFLAGS $CXXFLAGS" linkflags="$LDFLAGS" } # The package function is executed in the source directory @@ -22,5 +15,5 @@ package() { ./b2 install --prefix="$BPM_OUTPUT"/usr threading=multi link=shared # Install package license - install -Dm644 "$BPM_SOURCE"/LICENSE_1_0.txt "$BPM_OUTPUT"/usr/share/licenses/boost/LICENSE_1_0.txt + install -Dm644 "$BPM_SOURCE"/LICENSE_1_0.txt "$BPM_OUTPUT"/usr/share/licenses/boost/LICENSE }