aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pdfkit
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-02-28 10:25:53 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2016-02-28 10:27:01 +0200
commit987ca1be341e79d16ba75ebbb8b6b2d18dace69c (patch)
tree662beed139c0bfc4cbfacca0ebebd65a0d85b069 /testing/py-pdfkit
parent9059702acc5e1a1a7e98f7ec75b4e01d0415c866 (diff)
downloadaports-987ca1be341e79d16ba75ebbb8b6b2d18dace69c.tar.bz2
aports-987ca1be341e79d16ba75ebbb8b6b2d18dace69c.tar.xz
testing/py-pdfkit: new package
Diffstat (limited to 'testing/py-pdfkit')
-rw-r--r--testing/py-pdfkit/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/py-pdfkit/APKBUILD b/testing/py-pdfkit/APKBUILD
new file mode 100644
index 0000000000..2f4084ce82
--- /dev/null
+++ b/testing/py-pdfkit/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer:
+pkgname=py-pdfkit
+pkgver=0.5.0
+pkgrel=0
+pkgdesc="Python wrapper to convert HTML to PDF using the WebKit rendering engine"
+url=https://github.com/JazzCore/python-pdfkit
+arch=noarch
+license=MIT
+depends=wkhtmltopdf
+makedepends=py-setuptools
+source=https://pypi.python.org/packages/source/p/pdfkit/pdfkit-$pkgver.zip
+
+_builddir=$srcdir/pdfkit-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root "$pkgdir"
+}
+
+md5sums="5cbe42c43d463f0794272a01e37a553f pdfkit-0.5.0.zip"
+sha256sums="6e176cf460d8f8996d4c316aef1189e1c1c134d28d47a1e5e783e250ee3335dc pdfkit-0.5.0.zip"
+sha512sums="7d310d36503305bf71065b9b96bb313cb21f40ad7c347554b6f7a82e3d7ee8a7e3122ce54a522fbbacb5c50f0ddb72c9827bc0b38aa1ebea891e5c91b2668841 pdfkit-0.5.0.zip"