# SliTaz package receipt.
PACKAGE="xhtml2pdf"
SOURCE="pisa"
VERSION="3.0.32"
CATEGORY="utilities"
SHORT_DESC="Converter for HTML/XHTML and CSS to PDF."
MAINTAINER="claudinei@slitaz.org"
LICENSE="GPL2"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.xhtml2pdf.com"
WGET_URL="https://pypi.python.org/packages/source/p/$SOURCE/$TARBALL"
DEPENDS="python python-reportlab python-html5lib python-pypdf"
BUILD_DEPENDS="$DEPENDS python-setuptools python-dev"
# What is the latest version available today?
current_version()
{
wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
}
# Rules to configure and make the package.
compile_rules()
{
python setup.py install --root=$DESTDIR
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr
cp -a $install/usr $fs
}