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 }