diff --git a/bin/yaml/libraries.yaml b/bin/yaml/libraries.yaml index 23d3708f8..6bd5748f0 100644 --- a/bin/yaml/libraries.yaml +++ b/bin/yaml/libraries.yaml @@ -457,6 +457,15 @@ libraries: targets: - 0.12.2 type: github + icu: + build_type: manual + check_file: README.md + lib_type: shared + repo: unicode-org/icu + target_prefix: release- + targets: + - 71-1 + type: github hip-amd: check_file: include/hip/hip_runtime.h path_name: libs/rocm/{name} diff --git a/update_compilers/install_libraries.sh b/update_compilers/install_libraries.sh index 70b9dc61c..67693db0e 100755 --- a/update_compilers/install_libraries.sh +++ b/update_compilers/install_libraries.sh @@ -51,6 +51,35 @@ install_openssl() { install_openssl 1_1_1c 1_1_1g +######################### +# ICU + +install_icu() { + for VERSION in "$@"; do + local DEST=${OPT}/libs/icu/${VERSION}/x86_64/opt + if [[ ! -d ${DEST} ]]; then + pushd /tmp + fetch "https://github.com/unicode-org/icu/releases/download/release-${VERSION}/icu4c-${VERSION/-/_}-src.tgz" | + tar zxf - + pushd icu/source + ./configure --prefix=${DEST} + make + make install + + make clean + ./configure --prefix=${DEST/x86_64/x86} --with-library-bits=32 + make + make install + + popd + rm -rf icu + popd + fi + done +} + +install_icu 71-1 + ######################### # cs50