CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
c32bf9410596d4dce2e8d40259f00dc16610bba8
[ports/opt-arm.git] / icu / Pkgfile
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=58.2
9 release=1
10 source=(http://download.icu-project.org/files/icu4c/$version/icu4c-${version//./_}-src.tgz
11 icu-58.1-remove-bashisms.patch icu-58.1-iterator.patch)
12
13 build() {
14 cd icu/source
15
16 patch -p1 -i $SRC/icu-58.1-remove-bashisms.patch
17 patch -p1 -i $SRC/icu-58.1-iterator.patch
18
19 # icu tries to use clang by default
20 [ "$CC" ] || export CC=gcc
21 [ "$CXX" ] || export CXX=g++
22
23 sed -i -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" config/mh-linux
24
25 ./configure \
26 --prefix=/usr \
27 --disable-samples \
28 --disable-tests
29
30 make
31 make DESTDIR=$PKG install
32 }