blob: 710bae995b2a80020bb28edad04ae84da255382c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=py3-pdfkit
_pkgname=pdfkit
pkgver=0.6.1
pkgrel=1
pkgdesc="Python wrapper to convert HTML to PDF using the WebKit rendering engine"
options="!check" # No testsuite in pypi tarball, no github releases
url="https://github.com/JazzCore/python-pdfkit"
arch="noarch !mips !mips64" # blocked by wkhtmltopdf
license="MIT"
depends="wkhtmltopdf python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pdfkit/pdfkit-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-pdfkit" # Backwards compatibility
provides="py-pdfkit=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
package() {
python3 setup.py install --root "$pkgdir"
}
sha512sums="b3ac1016d1c01a2a196f567b9b672caca10f564cc6a62122691d34c3cbbf143f6a846bfba26c3474e9c0296977f0d30c0b5af13b3321ab207b787df3cba12e5d pdfkit-0.6.1.tar.gz"
|