| 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 |
| 8 | version=67.1 |
| 9 | release=1 |
| 10 | source=(https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version/./_}-src.tgz |
| 11 | icudata-stdlibs.patch) |
| 12 | |
| 13 | build() { |
| 14 | cd icu/source |
| 15 | |
| 16 | patch -p2 -i $SRC/icudata-stdlibs.patch |
| 17 | |
| 18 | # icu tries to use clang by default |
| 19 | [ "$CC" ] || export CC=gcc |
| 20 | [ "$CXX" ] || export CXX=g++ |
| 21 | |
| 22 | ./configure \ |
| 23 | --prefix=/usr \ |
| 24 | --mandir=/usr/share/man \ |
| 25 | --disable-samples \ |
| 26 | --disable-tests |
| 27 | |
| 28 | make |
| 29 | make -j1 DESTDIR=$PKG install |
| 30 | } |