blob: 049342ae2b5b24a2a714d8c7bc4bda733fe5426b [file] [log] [blame] [edit]
#!/bin/sh
# This is the original we used ~2015:
#ICU_URL=http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-RHEL6-x64.tgz
# PREFIX=${HOME}/icu-inst
PREFIX=/usr/local/icu
# ICU_URL=http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz
# ICU_URL=http://download.icu-project.org/files/icu4c/60.2/icu4c-60_2-src.tgz
# ICU_URL=http://download.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz
#ICU_URL=http://download.icu-project.org/files/icu4c/64rc2/icu4c-64rc2-src.tgz
ICU_URL=https://github.com/unicode-org/icu/releases/download/release-66-1/icu4c-66_1-Ubuntu18.04-x64.tgz
ICU_BASE=`basename $ICU_URL`
ICU_BUILD=icu_build
set -x
# rm -rf ./${ICU_BUILD} && mkdir ${ICU_BUILD} || exit 1
wget -c ${ICU_URL} || exit 1
# cd ${ICU_BUILD} || exit 1
tar xfpz ./${ICU_BASE} || exit 1
# export PATH=/usr/local/lib/gcc7/bin/:$PATH
# export LD_LIBRARY_PATH=/usr/local/lib/gcc7/lib64:/usr/local/lib/gcc7/lib:$LD_LIBRARY_PATH
# ( cd icu/source && ./configure --enable-rpath --prefix=${PREFIX} --disable-debug --enable-release --disable-extras --disable-tests && make && make install ) || exit 1
# cd ..
# if [ ! -d pkg-config ];
# then
# git clone git://anongit.freedesktop.org/pkg-config
# else
# (cd pkg-config ; git pull )
# fi