# SliTaz package receipt.

PACKAGE="icu"
VERSION="4.6.1"
CATEGORY="system-tools"
SHORT_DESC="C/C++ and Java libraries providing Unicode and Globalization."
MAINTAINER="pankso@slitaz.org"
SOURCE="icu4c"
TARBALL="$SOURCE-${VERSION//./_}-src.tgz"
WEB_SITE="http://www.icu-project.org/"
WGET_URL="http://download.icu-project.org/files/$SOURCE/$VERSION/$TARBALL"
#WGET_URL="http://www.sfr-fresh.com/unix/misc/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src/source
	sed -i 's/dirname -- /dirname/' configure
	./configure \
		--disable-tests \
		--disable-samples \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}