6c29aaa1c7
This will make things as std::to_string() and other C++ features work with a modern and supported C++ library. We package up libc++_shared.so and bump the revision of every C++ using package to make it rebuild against it. Users who have built C++ using libraries or programs will probably need to rebuild them if they are linked against Termux-supplied libraries, as user code was previously linked against gnustl while the system libraries are now using libc++, and it's not a good idea to mix C++ standard libraries in a program.
23 lines
1006 B
Bash
23 lines
1006 B
Bash
TERMUX_PKG_HOMEPAGE=http://site.icu-project.org/home
|
|
TERMUX_PKG_DESCRIPTION='International Components for Unicode library'
|
|
TERMUX_PKG_VERSION=59.1
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=http://download.icu-project.org/files/icu4c/${TERMUX_PKG_VERSION/_/}/icu4c-${TERMUX_PKG_VERSION//./_}-src.tgz
|
|
TERMUX_PKG_SHA256=7132fdaf9379429d004005217f10e00b7d2319d0fea22bdfddef8991c45b75fe
|
|
TERMUX_PKG_FOLDERNAME="icu/source"
|
|
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="bin/icu-config share/man/man1/icu-config.1 lib/icu share/icu"
|
|
TERMUX_PKG_HOSTBUILD=true
|
|
TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS="--disable-samples --disable-tests"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-samples --disable-tests --with-cross-build=$TERMUX_PKG_HOSTBUILD_DIR"
|
|
TERMUX_PKG_MAINTAINER='Vishal Biswas @vishalbiswas'
|
|
|
|
termux_step_post_extract_package () {
|
|
# LICENSE resides outside of actual src
|
|
mv "$TERMUX_PKG_TMPDIR/icu/LICENSE" "$TERMUX_PKG_SRCDIR/../"
|
|
}
|
|
|
|
termux_step_post_make_install () {
|
|
rm "$TERMUX_PKG_SRCDIR/../LICENSE"
|
|
}
|
|
|