blob: a108abbf9bc1528442962d2d17594425cb915b0c (
plain)
1 # Description: Widely used set of C/C++ libraries providing Unicode and Globalization support.
2 # URL: https://icu.unicode.org
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: icu
5
6 name=icu-32
7 version=72.1
8 release=1
9 source=(https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version/./_}-src.tgz)
10
11 build() {
12 cd icu/source
13
14 # icu tries to use clang by default, only do so if installed
15 prt-get isinst clang lld && LDFLAGS+=' -fuse-ld=lld -flto=thin'
16 prt-get isinst clang && export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib || \
17 export CC=gcc CXX=g++
18
19 ./configure \
20 --prefix=/usr \
21 --libdir=/usr/lib32 \
22 --disable-samples \
23 --disable-tests
24
25 make
26 make DESTDIR=$PKG install
27
28 rm -r \
29 $PKG/usr/bin \
30 $PKG/usr/sbin \
31 $PKG/usr/share/man \
32 $PKG/usr/share/icu \
33 $PKG/usr/include/unicode
34 }
|