# SliTaz package receipt.
PACKAGE="python-html5lib"
SOURCE="html5lib"
VERSION="0.11.1"
CATEGORY="development"
SHORT_DESC="A ruby/python based html parser/tokenizer."
MAINTAINER="claudinei@slitaz.org"
TARBALL="$SOURCE-$VERSION.zip"
WEB_SITE="http://code.google.com/p/html5lib"
WGET_URL="http://$SOURCE.googlecode.com/files/$TARBALL"
DEPENDS="python"
BUILD_DEPENDS="python python-dev setuptools"
# Rules to configure and make the package.
compile_rules()
{
cd $src
python setup.py install --root=$PWD/_pkg
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr
cp -a $_pkg/usr $fs
}
# Remove old package.
post_install()
{
rm -rf $1/var/lib/tazpkg/installed/html5lib
}