wok annotate python-pdfkit/receipt @ rev 24347

Up expat (2.4.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 02 09:41:22 2022 +0000 (2022-02-02)
parents 814362194a8d
children 076f424196b2
rev   line source
pascal@20671 1 # SliTaz package receipt.
pascal@20671 2
pascal@20671 3 PACKAGE="python-pdfkit"
pascal@20671 4 VERSION="0.6.1"
pascal@20671 5 CATEGORY="development"
pascal@20671 6 SHORT_DESC="Wkhtmltopdf python wrapper to convert html to pdf"
pascal@20671 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20671 8 LICENSE="MIT"
pascal@20671 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20671 10 WEB_SITE="https://pypi.org/project/pdfkit/"
pascal@20671 11 WGET_URL="https://files.pythonhosted.org/packages/a1/98/6988328f72fe3be4cbfcb6cbfc3066a00bf111ca7821a83dd0ce56e2cf57/pdfkit-$VERSION.tar.gz"
pascal@20671 12
pascal@20671 13 DEPENDS="python wkhtmltopdf"
pascal@21582 14 BUILD_DEPENDS="python-setuptools"
pascal@20671 15
pascal@24288 16 current_version()
pascal@24288 17 {
pascal@24288 18 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
pascal@24288 19 }
pascal@24288 20
pascal@20671 21 # Rules to configure and make the package.
pascal@20671 22 compile_rules()
pascal@20671 23 {
pascal@20671 24 python setup.py build &&
pascal@20671 25 python setup.py install --root=$DESTDIR
pascal@20671 26 }
pascal@20671 27
pascal@20671 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20671 29 genpkg_rules()
pascal@20671 30 {
pascal@20671 31 mkdir -p $install/usr/share/doc
pascal@20671 32 cp $src/README.rst $install/usr/share/doc
pascal@20671 33 cp -a $install/usr $fs
pascal@20671 34 }