wok-current view python-pdfkit/receipt @ rev 24288

fail2ban: add log4j-jndi.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 13 18:29:05 2022 +0000 (2022-01-13)
parents 814362194a8d
children 076f424196b2
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 WEB_SITE="https://pypi.org/project/pdfkit/"
11 WGET_URL="https://files.pythonhosted.org/packages/a1/98/6988328f72fe3be4cbfcb6cbfc3066a00bf111ca7821a83dd0ce56e2cf57/pdfkit-$VERSION.tar.gz"
13 DEPENDS="python wkhtmltopdf"
14 BUILD_DEPENDS="python-setuptools"
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 python setup.py build &&
25 python setup.py install --root=$DESTDIR
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $install/usr/share/doc
32 cp $src/README.rst $install/usr/share/doc
33 cp -a $install/usr $fs
34 }