termux-packages/packages/libicu/build.sh
Leonid Pliushch 2558007608 libicu: revert to v66.1
Newer versions break nodejs, nodejs-lts because API

 icu::number::FormattedNumber::getAllFieldPositions()

was removed.
2020-04-26 14:44:02 +03:00

19 lines
913 B
Bash

TERMUX_PKG_HOMEPAGE=http://site.icu-project.org/home
TERMUX_PKG_DESCRIPTION='International Components for Unicode library'
TERMUX_PKG_LICENSE="BSD"
# Function `icu::number::FormattedNumber::getAllFieldPositions` was removed
# from v67 and that breaks packages nodejs, nodejs-lts.
TERMUX_PKG_VERSION=66.1
TERMUX_PKG_SRCURL=https://github.com/unicode-org/icu/releases/download/release-${TERMUX_PKG_VERSION//./-}/icu4c-${TERMUX_PKG_VERSION//./_}-src.tgz
TERMUX_PKG_SHA256=52a3f2209ab95559c1cf0a14f24338001f389615bf00e2585ef3dbc43ecf0a2e
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BREAKS="libicu-dev"
TERMUX_PKG_REPLACES="libicu-dev"
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_step_post_extract_package() {
TERMUX_PKG_SRCDIR+="/source"
}