wok annotate python-pdfkit/receipt @ rev 24587
updated gdb, gdb-dev and gdb-python (7.7 -> 11.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 28 14:51:19 2022 +0100 (2022-02-28) |
parents | 1df6fa555414 |
children | 6dbe053a9904 |
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@24383 | 10 SOURCE="bundled-pdfkit" |
pascal@24383 | 11 WEB_SITE="https://pypi.org/project/$SOURCE/" |
pascal@20671 | 12 WGET_URL="https://files.pythonhosted.org/packages/a1/98/6988328f72fe3be4cbfcb6cbfc3066a00bf111ca7821a83dd0ce56e2cf57/pdfkit-$VERSION.tar.gz" |
pascal@20671 | 13 |
pascal@20671 | 14 DEPENDS="python wkhtmltopdf" |
pascal@21582 | 15 BUILD_DEPENDS="python-setuptools" |
pascal@20671 | 16 |
pascal@24383 | 17 # What is the latest version available today? |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@24383 | 20 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q" |
pascal@24288 | 21 } |
pascal@24288 | 22 |
pascal@20671 | 23 # Rules to configure and make the package. |
pascal@20671 | 24 compile_rules() |
pascal@20671 | 25 { |
pascal@20671 | 26 python setup.py build && |
pascal@20671 | 27 python setup.py install --root=$DESTDIR |
pascal@20671 | 28 } |
pascal@20671 | 29 |
pascal@20671 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20671 | 31 genpkg_rules() |
pascal@20671 | 32 { |
pascal@20671 | 33 mkdir -p $install/usr/share/doc |
pascal@20671 | 34 cp $src/README.rst $install/usr/share/doc |
pascal@20671 | 35 cp -a $install/usr $fs |
pascal@20671 | 36 } |