summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFlorijan Hamzic2015-06-16 11:27:49 +0200
committerFlorijan Hamzic2015-06-16 11:27:49 +0200
commitdb33682706a2dc59d98423fb01154fa0642b863c (patch)
tree8987940f0e0be91aaaa3bafef518ff43bd8c33df /PKGBUILD
downloadaur-db33682706a2dc59d98423fb01154fa0642b863c.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e7959a479ae
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Florijan Hamzic <florijanh at gmail dot com>
+_pypi_name='WeasyPrint'
+pkgver=0.23
+pkgrel=2
+pkgdesc="Converts web documents (HTML, CSS, SVG, ...) to PDF."
+license=('BSD')
+arch=('any')
+url="http://weasyprint.org/"
+makedepends=('python' 'python-distribute')
+depends=('python' 'pango>=1.29.3' 'gdk-pixbuf2>=2.25' 'python-gobject'
+ 'python-cairo' 'python-lxml' 'python-cairosvg>=0.4.1'
+ 'python-tinycss=0.3' 'python-cssselect>=0.6' 'python-html5lib'
+ 'python-cffi' 'python-cairocffi' 'python-pyphen')
+
+pkgname="python-weasyprint"
+_pypi_name_inital=$(echo ${_pypi_name}|cut -c1)
+source=("http://pypi.python.org/packages/source/${_pypi_name_inital}/${_pypi_name}/${_pypi_name}-${pkgver}.tar.gz")
+md5sums=('4b66302fa685f5e183a5f912eccb02e0')
+
+
+package() {
+ cd "$srcdir/WeasyPrint-$pkgver"
+ python3 setup.py install --root="$pkgdir/" --optimize=1
+}