# Maintainer: Natanael Copa pkgname=icu pkgver=49.1.1 # convert x.y.z to x_y_z _ver=${pkgver//./_} pkgrel=0 pkgdesc="International Components for Unicode library" url="http://www.icu-project.org/" arch="all" license="custom:icu" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends= source="http://download.icu-project.org/files/icu4c/${pkgver}/${pkgname}4c-$_ver-src.tgz icu-timezone-uclibc.patch " _builddir="$srcdir"/icu/source prepare() { cd "$_builddir" local x # https://bugs.icu-project.org/trac/ticket/6102 for x in ARFLAGS CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do sed -i -e "/^${x} =.*/s:@${x}@::" "config/Makefile.inc.in" \ || return 1 done for i in $source; do case "$i" in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 chmod +x "$pkgdir"/usr/bin/icu-config install -Dm644 "$srcdir"/icu/license.html \ "$pkgdir"/usr/share/licenses/icu/license.html } md5sums="7c53f83e0327343f4060c0eb83842daf icu4c-49_1_1-src.tgz 70aabd2c1e14477cfa261e729ffd7054 icu-timezone-uclibc.patch"