wok-current annotate python-pdfkit/receipt @ rev 24331
updated attr and attr-dev (2.4.48 -> 2.5.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 17:14:58 2022 +0100 (2022-01-27) |
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 } |