app=icu
version=69.1
build=1sml
homepage="http://www.icu-project.org/"
download="https://github.com/unicode-org/icu/releases/download/release-69-1/icu4c-69_1-src.tgz"
desc="International Components for Unicode"
requires="gcc-libs python3"

build() {
  mkandenterbuilddir
  rm -rf "$app"

  sversion="$(echo $version | sed 's/\./_/g')"
  tar xf $srcdir/icu4c-$sversion-src.tar.lz
  cd icu
  fixbuilddirpermissions

  cd source
  CFLAGS="$CFLAGS" \
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --disable-tests \
    --disable-samples \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp ../LICENSE $pkgdocs/ 

  mkfinalpkg
}

sha512sums="
45767114fb41ae55589da151970f22769065cfe57ca723d95349293cb1705cb09c041f09fbb4c4aec0ced562467e5b7f6a058e18230c2aa6f15dd6f491140a6e  icu4c-69_1-src.tar.lz
"
