summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorijan Hamzic2015-06-16 11:27:49 +0200
committerFlorijan Hamzic2015-06-16 11:27:49 +0200
commitdb33682706a2dc59d98423fb01154fa0642b863c (patch)
tree8987940f0e0be91aaaa3bafef518ff43bd8c33df
downloadaur-db33682706a2dc59d98423fb01154fa0642b863c.tar.gz
Initial commit
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD24
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..131c8227a8b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = python-weasyprint
+ pkgdesc = Converts web documents (HTML, CSS, SVG, ...) to PDF.
+ pkgver = 0.23
+ pkgrel = 2
+ url = http://weasyprint.org/
+ arch = any
+ license = BSD
+ makedepends = python
+ makedepends = python-distribute
+ depends = python
+ depends = pango>=1.29.3
+ depends = gdk-pixbuf2>=2.25
+ depends = python-gobject
+ depends = python-cairo
+ depends = python-lxml
+ depends = python-cairosvg>=0.4.1
+ depends = python-tinycss=0.3
+ depends = python-cssselect>=0.6
+ depends = python-html5lib
+ depends = python-cffi
+ depends = python-cairocffi
+ depends = python-pyphen
+ source = http://pypi.python.org/packages/source/W/WeasyPrint/WeasyPrint-0.23.tar.gz
+ md5sums = 4b66302fa685f5e183a5f912eccb02e0
+
+pkgname = python-weasyprint
+
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
+}