name=icu
version=78.1
release=1
desc="Unicode and globalisation support"
url="https://icu.unicode.org/"
license="ICU"
depend="glibc"
makedepend=""
source="https://github.com/unicode-org/icu/releases/download/release-78.1/icu4c-78.1-sources.tgz"
sha256="SKIP"

build() {
	cd "icu/source"
	_opts="--prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --disable-renaming"
	_help=$(./configure --help 2>/dev/null)
	case "$_help" in *--disable-static*)  _opts="$_opts --disable-static" ;; esac
	case "$_help" in *--disable-nls*)     _opts="$_opts --disable-nls" ;; esac
	case "$_help" in *--disable-dependency-tracking*) _opts="$_opts --disable-dependency-tracking" ;; esac
	./configure $_opts
	gmake -j"$JOBS"
}

package() {
	cd "icu/source"
	gmake DESTDIR="$pkgdir" install
}
