CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
icu: updated to 63.1
[ports/opt-arm.git] / icu / Pkgfile
index fed2e2a498d3708da48ee8ec356ed4ba0a979649..a8ef17aa3613a265a522b62e39d2e429ddfc96e3 100644 (file)
@@ -5,20 +5,24 @@
 # Packager: Younes Hafri, ycrux at club-internet dot fr
 
 name=icu
-version=56.1
+version=63.1
 release=1
-source=(http://download.icu-project.org/files/icu4c/$version/icu4c-${version//./_}-src.tgz)
+source=(https://ssl.icu-project.org/files/icu4c/$version/icu4c-${version//./_}-src.tgz)
 
 build() {
   cd icu/source
+
+  # icu tries to use clang by default
+  [ "$CC" ] || export CC=gcc
+  [ "$CXX" ] || export CXX=g++
+
   sed -i -e "s:LDFLAGSICUDT=-nodefaultlibs -nostdlib:LDFLAGSICUDT=:" config/mh-linux
+
   ./configure \
     --prefix=/usr \
     --disable-samples \
     --disable-tests
 
   make
-  make DESTDIR=$PKG install
-
-  rm $PKG/usr/share/icu/$version/license.html
+  make -j1 DESTDIR=$PKG install
 }