| 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=60.1 |
| 9 | release=1 |
| 10 | source=(http://download.icu-project.org/files/icu4c/$version/icu4c-${version//./_}-src.tgz) |
| 11 | |
| 12 | build() { |
| 13 | cd icu/source |
| 14 | |
| 15 | # icu tries to use clang by default |
| 16 | [ "$CC" ] || export CC=gcc |
| 17 | [ "$CXX" ] || export CXX=g++ |
| 18 | |
| 19 | sed -i -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" config/mh-linux |
| 20 | |
| 21 | ./configure \ |
| 22 | --prefix=/usr \ |
| 23 | --disable-samples \ |
| 24 | --disable-tests |
| 25 | |
| 26 | make |
| 27 | make -j1 DESTDIR=$PKG install |
| 28 | } |