forked from ports/compat-32
35 lines
890 B
Plaintext
35 lines
890 B
Plaintext
# Description: Widely used set of C/C++ libraries providing Unicode and Globalization support.
|
|
# URL: https://icu.unicode.org
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: icu
|
|
|
|
name=icu-32
|
|
version=74.1
|
|
release=1
|
|
source=(https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version/./_}-src.tgz)
|
|
|
|
build() {
|
|
cd icu/source
|
|
|
|
# icu tries to use clang by default, only do so if installed
|
|
prt-get isinst clang lld && LDFLAGS+=' -fuse-ld=lld -flto=thin'
|
|
prt-get isinst clang && export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib || \
|
|
export CC=gcc 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
|
|
}
|