wok-current view python-pdfkit/receipt @ rev 24469
updated davfs2 (1.5.6 -> 1.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 14:10:04 2022 +0100 (2022-02-17) |
parents | 1df6fa555414 |
children | 6dbe053a9904 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pdfkit"
4 VERSION="0.6.1"
5 CATEGORY="development"
6 SHORT_DESC="Wkhtmltopdf python wrapper to convert html to pdf"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 SOURCE="bundled-pdfkit"
11 WEB_SITE="https://pypi.org/project/$SOURCE/"
12 WGET_URL="https://files.pythonhosted.org/packages/a1/98/6988328f72fe3be4cbfcb6cbfc3066a00bf111ca7821a83dd0ce56e2cf57/pdfkit-$VERSION.tar.gz"
14 DEPENDS="python wkhtmltopdf"
15 BUILD_DEPENDS="python-setuptools"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py build &&
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $install/usr/share/doc
34 cp $src/README.rst $install/usr/share/doc
35 cp -a $install/usr $fs
36 }