wok annotate python-pdfkit/receipt @ rev 25509
sgmixer: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 13:14:45 2023 +0000 (19 months ago) |
parents | 076f424196b2 |
children |
rev | line source |
---|---|
pascal@20671 | 1 # SliTaz package receipt. |
pascal@20671 | 2 |
pascal@20671 | 3 PACKAGE="python-pdfkit" |
Hans-G?nter@25217 | 4 VERSION="1.0.0" |
pascal@20671 | 5 CATEGORY="development" |
Hans-G?nter@25217 | 6 SHORT_DESC="Wkhtmltopdf python wrapper to convert html to pdf." |
pascal@20671 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20671 | 8 LICENSE="MIT" |
Hans-G?nter@25217 | 9 WEB_SITE="https://pypi.org/project/pdfkit/" |
Hans-G?nter@25217 | 10 REPOLOGY="python:pdfkit" |
Hans-G?nter@25217 | 11 |
Hans-G?nter@25217 | 12 SOURCE="pdfkit" |
Hans-G?nter@25217 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25217 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@20671 | 15 |
pascal@20671 | 16 DEPENDS="python wkhtmltopdf" |
pascal@21582 | 17 BUILD_DEPENDS="python-setuptools" |
pascal@20671 | 18 |
pascal@24383 | 19 # What is the latest version available today? |
pascal@24288 | 20 current_version() |
pascal@24288 | 21 { |
pascal@24383 | 22 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q" |
pascal@24288 | 23 } |
pascal@24288 | 24 |
pascal@20671 | 25 # Rules to configure and make the package. |
pascal@20671 | 26 compile_rules() |
pascal@20671 | 27 { |
pascal@20671 | 28 python setup.py build && |
pascal@20671 | 29 python setup.py install --root=$DESTDIR |
pascal@20671 | 30 } |
pascal@20671 | 31 |
pascal@20671 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20671 | 33 genpkg_rules() |
pascal@20671 | 34 { |
pascal@20671 | 35 mkdir -p $install/usr/share/doc |
Hans-G?nter@25217 | 36 |
Hans-G?nter@25217 | 37 cp $src/README.rst $install/usr/share/doc |
Hans-G?nter@25217 | 38 cp -a $install/usr $fs |
pascal@20671 | 39 } |