# SliTaz package receipt.

PACKED_SIZE="112.0K"
UNPACKED_SIZE="336.0K"
PACKAGE="libxslt"
VERSION="1.1.26"
CATEGORY="system-tools"
SHORT_DESC="XSLT support for libxml2."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.xmlsoft.org/XSLT/"
WGET_URL="ftp://xmlsoft.org/libxslt/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="libgcrypt libgpg-error libxml2 zlib"
BUILD_DEPENDS="libgcrypt-dev libgpg-error-dev libxml2-dev zlib-dev \
python-dev"

# Handle cross compilation
case "$ARCH" in
	arm) BUILD_DEPENDS="libgcrypt-dev libgpg-error-dev libxml2-dev" ;;
esac

# Rules to configure and make the package.
compile_rules()
{
	./configure $CONFIGURE_ARGS &&
	make &&
	make install 2>&1 | grep -v 'html/index.sgml'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib/libxslt-plugins
	cp -a $install/usr/lib/*.so* $fs/usr/lib
	cp -a $install/usr/bin $fs/usr
	rm $fs/usr/bin/xslt-config
}
