38 lines
930 B
Plaintext
38 lines
930 B
Plaintext
# Description: Widely used set of C/C++ libraries providing Unicode and Globalization support.
|
|
# URL: http://www.icu-project.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: icu
|
|
|
|
name=icu-32
|
|
version=65.1
|
|
release=1
|
|
source=(https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version/./_}-src.tgz
|
|
icu-65.1-initialized-buffer-uloc_getKeywordValue.patch)
|
|
|
|
build() {
|
|
cd icu/source
|
|
|
|
# https://unicode-org.atlassian.net/browse/ICU-20884
|
|
patch -p2 -d .. -i $SRC/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch
|
|
|
|
# icu tries to use clang by default
|
|
[ "$CC" ] || export CC=gcc
|
|
[ "$CXX" ] || export CXX=g++
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--disable-samples \
|
|
--disable-tests
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r \
|
|
$PKG/usr/bin \
|
|
$PKG/usr/sbin \
|
|
$PKG/usr/share/man \
|
|
$PKG/usr/share/icu \
|
|
$PKG/usr/include/unicode
|
|
}
|