Skip to content

Commit 483f4c4

Browse files
committed
Add library ICU
1 parent 8c8ec64 commit 483f4c4

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

bin/yaml/libraries.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,15 @@ libraries:
442442
targets:
443443
- 0.12.2
444444
type: github
445+
icu:
446+
build_type: manual
447+
check_file: README.md
448+
lib_type: shared
449+
repo: unicode-org/icu
450+
target_prefix: release-
451+
targets:
452+
- 71-1
453+
type: github
445454
jsoncons:
446455
check_file: README.md
447456
repo: danielaparker/jsoncons

update_compilers/install_libraries.sh

+29
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,35 @@ install_openssl() {
5151

5252
install_openssl 1_1_1c 1_1_1g
5353

54+
#########################
55+
# ICU
56+
57+
install_icu() {
58+
for VERSION in "$@"; do
59+
local DEST=${OPT}/libs/icu/${VERSION}/x86_64/opt
60+
if [[ ! -d ${DEST} ]]; then
61+
pushd /tmp
62+
fetch "https://github.com/unicode-org/icu/releases/download/release-${VERSION}/icu4c-${VERSION/-/_}-src.tgz" |
63+
tar zxf -
64+
pushd icu/source
65+
./configure --prefix=${DEST}
66+
make
67+
make install
68+
69+
make clean
70+
./configure --prefix=${DEST/x86_64/x86} --with-library-bits=32
71+
make
72+
make install
73+
74+
popd
75+
rm -rf icu
76+
popd
77+
fi
78+
done
79+
}
80+
81+
install_icu 71-1
82+
5483
#########################
5584
# cs50
5685

0 commit comments

Comments
 (0)