Commit | Line | Data |
---|---|---|
b295581a VM |
1 | # Description: Widely used set of C/C++ libraries providing Unicode and Globalization support. |
2 | # URL: http://www.icu-project.org/ | |
3 | # Maintainer: Danny Rawlins, crux at romster dot me | |
4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
5 | # Packager: Younes Hafri, ycrux at club-internet dot fr | |
6 | ||
7 | name=icu | |
aae85d26 | 8 | version=65.1 |
b295581a | 9 | release=1 |
aae85d26 VM |
10 | source=(https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version/./_}-src.tgz |
11 | icu-65.1-initialized-buffer-uloc_getKeywordValue.patch) | |
b295581a VM |
12 | |
13 | build() { | |
14 | cd icu/source | |
d8b5a597 | 15 | |
aae85d26 VM |
16 | # https://unicode-org.atlassian.net/browse/ICU-20884 |
17 | patch -p2 -d .. -i $SRC/icu-65.1-initialized-buffer-uloc_getKeywordValue.patch | |
18 | ||
d8b5a597 VM |
19 | # icu tries to use clang by default |
20 | [ "$CC" ] || export CC=gcc | |
21 | [ "$CXX" ] || export CXX=g++ | |
22 | ||
b295581a | 23 | sed -i -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" config/mh-linux |
d8b5a597 | 24 | |
b295581a VM |
25 | ./configure \ |
26 | --prefix=/usr \ | |
27 | --disable-samples \ | |
28 | --disable-tests | |
29 | ||
30 | make | |
22c0fe16 | 31 | make -j1 DESTDIR=$PKG install |
b295581a | 32 | } |